/* ==========================================================================
   HALCYON CUSTOM FONTS
   ========================================================================== */

@font-face {
    font-family: 'Halcyon-Regular';
    src: url('../fonts/Halcyon-Regular.woff2') format('woff2'),
        url('../fonts/Halcyon-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Halcyon-Medium';
    src: url('../fonts/Halcyon-Medium.woff2') format('woff2'),
        url('../fonts/Halcyon-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Halcyon-SemiBold';
    src: url('../fonts/Halcyon-SemiBold.woff2') format('woff2'),
        url('../fonts/Halcyon-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Halcyon-Bold';
    src: url('../fonts/Halcyon-Bold.woff2') format('woff2'),
        url('../fonts/Halcyon-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   BOOTSTRAP 3 .WELL CLASS (for countdown section)
   ========================================================================== */

.well {
    background-color: rgb(230, 239, 233);
    padding: 19px;
    margin: 40px 0px 20px;
    border-radius: 30px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 0px inset;
    border: 0px solid rgb(51, 51, 51);
}

/* Countdown section heading - override template defaults */
.well h2 {
    font-weight: 500 !important;
    font-size: 30px !important;
    line-height: 42px !important;
    color: rgb(0, 0, 0) !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
}

/* Fix countdown number line-height to prevent excessive spacing */
.well #codepopularCountdown li {
    line-height: 24px !important;
}

.well #codepopularCountdown li span {
    line-height: 24px !important;
}

/* Countdown button - override Bootstrap button styling */
.well .btn.btn-default {
    background-color: rgb(255, 255, 255) !important;
    color: rgb(51, 51, 51) !important;
    font-size: 18px !important;
    font-family: Halcyon-Medium !important;
    font-weight: 400 !important;
    padding: 8px 16px !important;
    border: 2px solid rgb(204, 204, 204) !important;
    border-radius: 50px !important;
    display: block !important;
    width: 307px !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Countdown button hover state */
.well .btn.btn-default:hover {
    background-color: rgb(245, 245, 245) !important;
    color: rgb(51, 51, 51) !important;
    border-color: rgb(204, 204, 204) !important;
}

/* ==========================================================================
   FLEKSIBLE NETTSTUDIER SECTION
   ========================================================================== */

/* Container spacing and fixed height - desktop only */
.bachelorutlandet2024 {
    margin: 40px auto !important;
    max-width: 1170px !important;
}

/* Fixed height only on desktop (md and above) */
@media (min-width: 992px) {
    .bachelorutlandet2024 {
        height: 400px !important;
    }
}

/* Row margins to match Bootstrap 3 */
.bachelorutlandet2024 .row {
    margin: 0px -15px !important;
}

/* Force columns to stack on mobile */
.bachelorutlandet2024infocol,
.bachelorutlandet2024imgcol {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* Content column padding, background, and rounded corners */
.bachelorutlandet2024infocol {
    padding: 30px !important;
    background-color: rgb(230, 239, 233) !important;
    border-radius: 30px 30px 0px 0px !important;
    position: relative !important;
}

/* Desktop: restore side-by-side layout */
@media (min-width: 992px) {

    .bachelorutlandet2024infocol,
    .bachelorutlandet2024imgcol {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    .bachelorutlandet2024infocol {
        padding: 30px 30px 30px 50px !important;
        border-radius: 30px 0px 0px 30px !important;
    }
}

/* Content wrapper - static on mobile, centered on desktop */
.bachelorutlandet2024content {
    position: static !important;
}

@media (min-width: 992px) {
    .bachelorutlandet2024content {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: 50px !important;
        right: 30px !important;
    }
}

/* Heading styling */
.bachelorutlandet2024 h2 {
    font-family: Halcyon-Medium !important;
    font-weight: 500 !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
    color: rgb(0, 0, 0) !important;
}

/* Paragraph styling */
.bachelorutlandet2024 p {
    font-size: 17px !important;
    line-height: 27.2px !important;
}

/* Button styling - exclude .bachelorutlandet2024button to avoid overriding its orange color */
.bachelorutlandet2024 button:not(.bachelorutlandet2024button),
.bachelorutlandet2024 .btn:not(.bachelorutlandet2024button) {
    font-size: 18px !important;
    font-family: Halcyon-Medium !important;
    padding: 10px 16px !important;
    background-color: rgb(255, 255, 255) !important;
    color: rgb(51, 51, 51) !important;
}

/* Image column - remove padding and set height on desktop only */
.bachelorutlandet2024imgcol {
    padding: 0px !important;
}

@media (min-width: 992px) {
    .bachelorutlandet2024imgcol {
        height: 400px !important;
    }
}

/* Image wrapper - rounded corners and fixed height on desktop */
.bachelorutlandet2024imgwrapper {
    border-radius: 30px 30px 0px 0px !important;
    overflow: hidden !important;
    width: 100% !important;
}

@media (min-width: 992px) {
    .bachelorutlandet2024imgwrapper {
        border-radius: 0px 30px 30px 0px !important;
        height: 400px !important;
    }
}

/* Image - fill the wrapper with zoom effect */
.bachelorutlandet2024img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.8s !important;
    margin: 0px auto !important;
}

/* Image zoom on hover */
.bachelorutlandet2024img:hover {
    transform: scale(1.1) !important;
}

/* ==========================================================================
   CAMPUS BOXES SECTION
   ========================================================================== */

/* Campus section wrapper - flex container for horizontal layout */
.campuses-section {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0px -15px !important;
}

/* Campus columns - responsive widths */
.campuses-section .col-md-3 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0px 15px !important;
}

/* 4 columns on desktop (md and above - 992px+) */
@media (min-width: 992px) {
    .campuses-section .col-md-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

/* Campus box container - light beige background with rounded corners */
.campus-thumb {
    background-color: rgb(217, 212, 214) !important;
    border-radius: 30px !important;
    margin-bottom: 40px !important;
}

/* Image wrapper with rounded top corners and overflow hidden for zoom effect */
.campus-thumb .zoom2024wrap {
    border-top-right-radius: 30px !important;
    border-top-left-radius: 30px !important;
    overflow: hidden !important;
}

/* General zoom wrapper */
.zoom2024wrap {
    overflow: hidden !important;
}

/* Image zoom transition */
.zoom2024 {
    transition: transform 0.8s !important;
    margin: 0px auto !important;
}

/* Image zoom effect on hover */
.zoom2024:hover {
    transform: scale(1.1) !important;
}

/* Content area with horizontal padding */
.campus-thumb .campus-thumb-content {
    padding: 0px 25px 10px !important;
}

/* "Campus" label styling - muted purple-gray color */
.campus-thumb .campus-thumb-content h4 {
    color: rgb(97, 86, 91) !important;
    margin-top: 18px !important;
    margin-bottom: 10px !important;
    font-size: 19px !important;
    font-weight: 500 !important;
    font-family: Halcyon-Medium !important;
    line-height: 20.9px !important;
}

/* City name heading styling */
.campus-thumb .campus-thumb-content h3 {
    margin-top: 5px !important;
    margin-bottom: 10px !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    font-family: Halcyon-Medium !important;
    color: rgb(0, 0, 0) !important;
    line-height: 26.4px !important;
}

/* City name link - black text, no underline */
.campus-thumb .campus-thumb-content h3 a {
    color: rgb(0, 0, 0) !important;
    text-decoration: none !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    font-family: Halcyon-Medium !important;
    transition: all !important;
}

/* Link hover/active states - keep black */
.campus-thumb .campus-thumb-content h3 a:hover,
.campus-thumb .campus-thumb-content h3 a:active {
    color: rgb(0, 0, 0) !important;
    text-decoration: none !important;
}

/* Arrow icon - light gray/purple, floated to right */
.campus-thumb .campus-thumb-content h3 i {
    color: rgb(169, 158, 162) !important;
    float: right !important;
    font-size: 24px !important;
}

/* ==========================================================================
   VÅRE STUDIER - COURSE THUMBNAILS
   ========================================================================== */

/* "Våre studier" section heading - target the h2 inside the module container */
#mod-custom714 h2,
.row[style*="margin-bottom: 50px"] h2 {
    font-size: 30px !important;
    font-weight: 500 !important;
    font-family: Halcyon-Medium !important;
    line-height: 42px !important;
    margin-top: 25px !important;
    margin-bottom: 25px !important;
}

/* Course thumbnail box - light beige background with rounded corners */
.thumbnail {
    background-color: rgb(217, 212, 214) !important;
    border-radius: 30px !important;
    margin-bottom: 18px !important;
    padding: 0px !important;
    border: 0px !important;
}

/* Image wrapper with rounded top corners */
.thumbnail .zoom2024wrap {
    border-top-right-radius: 30px !important;
    border-top-left-radius: 30px !important;
    overflow: hidden !important;
}

/* Caption/text area padding */
.thumbnail .caption {
    padding: 0px 15px 20px 25px !important;
}

/* Category label (e.g., "Årsstudium", "Toårig utdanning") */
.thumbnail .caption h4,
.thumbnail .caption .thumb-category-heading {
    font-size: 20px !important;
    font-weight: 500 !important;
    font-family: Halcyon-Medium !important;
    color: rgb(97, 86, 91) !important;
    line-height: 22px !important;
    margin-top: 16px !important;
    margin-bottom: 5px !important;
}

/* Course title */
.thumbnail .caption h3 {
    font-size: 24px !important;
    font-weight: 500 !important;
    font-family: Halcyon-Medium !important;
    color: rgb(0, 0, 0) !important;
    line-height: 26.4px !important;
    margin-top: 8px !important;
    margin-bottom: 10px !important;
}

/* Course title link - remove default link styling */
.thumbnail .caption h3 a {
    color: rgb(0, 0, 0) !important;
    text-decoration: none !important;
}

.thumbnail .caption h3 a:hover {
    color: rgb(0, 0, 0) !important;
    text-decoration: none !important;
}

/* ==========================================================================
   HERO BANNER / SLIDESHOW
   ========================================================================== */

.slideshow2024 {
    position: relative !important;
    max-height: 650px !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.mainprogramimg2024 {
    width: 100% !important;
    height: auto !important;
}

.slideshow2024overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.3) !important;
}

.programcontent2024 {
    position: absolute !important;
    bottom: 0 !important;
    left: calc((100vw - 1170px) / 2 + 7.5px) !important;
    padding: 0 15px 30px !important;
}

.programabovetitle2024 {
    font-size: 40px !important;
    font-weight: 500 !important;
    color: #fff !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    font-family: 'Halcyon-Bold', sans-serif !important;
}

.programtitle2024 {
    font-size: 78px !important;
    font-weight: 500 !important;
    color: #fff !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    font-family: 'Halcyon-Bold', sans-serif !important;
    line-height: 1.1 !important;
}

.slideshow2024 .programbeneathtitle2024,
h3.programbeneathtitle2024 {
    font-size: 35px !important;
    font-weight: 500 !important;
    color: rgb(224, 224, 224) !important;
    font-family: 'Halcyon-Medium', sans-serif !important;
    margin-top: 10px !important;
    max-width: 1000px !important;
}

/* Lead section below hero */
.leadrow2024 {
    padding: 0 !important;
    margin-top: 50px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
}

.leadrow2024 p.programlead2024 {
    font-family: 'Halcyon-Medium', sans-serif !important;
    font-size: 22px !important;
    line-height: 30.8px !important;
    color: rgb(51, 51, 51) !important;
    margin-bottom: 0 !important;
    padding-left: 15px !important;
}

.divapplybutton2024 {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
}

.divapplybutton2024 .btn-success {
    background-color: rgb(87, 126, 78) !important;
    border-color: rgb(87, 126, 78) !important;
    padding: 14px !important;
    font-size: 20px !important;
    border-radius: 50px !important;
    color: #fff !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.divapplybutton2024 .btn-success:hover {
    background-color: #4a7f5b !important;
    border-color: #4a7f5b !important;
}

/* Info boxes for location/pricing */
.infoboxrow2024 {
    margin-bottom: 30px !important;
    margin-top: 30px !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
}

/* Info box columns - 15px padding to match Bootstrap 3 gutters */
.infoboxrow2024 .col-md-4 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.infobox2024 {
    background-color: rgb(230, 239, 233) !important;
    border-radius: 30px !important;
    padding: 10px 15px 10px 30px !important;
    margin-bottom: 20px !important;
}

.infobox2024 h3 {
    font-size: 24px !important;
    font-family: 'Halcyon-Medium', sans-serif !important;
    font-weight: 500 !important;
    color: rgb(0, 0, 0) !important;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
}

.infobox2024 h3 a {
    color: rgb(0, 0, 0) !important;
    text-decoration: none !important;
}

.infobox2024 h3 a:hover {
    text-decoration: underline !important;
}

.infobox2024 table {
    width: 100% !important;
}

.tdleft2024 {
    width: 50px !important;
    vertical-align: top !important;
    color: rgb(0, 0, 0) !important;
    padding-top: 5px !important;
}

/* Top icon in info box header should be red */
.infobox2024 h3 i {
    color: rgb(255, 47, 2) !important;
}

/* Other icons in info box table should be black */
.tdleft2024 i {
    color: rgb(0, 0, 0) !important;
}

.infobox2024 p {
    margin-bottom: 10px !important;
    font-size: 16px !important;
}

.infoboxpris2024 {
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* ==========================================================================
   HEADER — white, logo left, menu right (one row), compact spacing
   ========================================================================== */

/* Add padding to body to offset fixed header */
body {
    font-family: Halcyon-Regular, sans-serif !important;
    font-size: 15px !important;
    line-height: 27px !important;
    color: rgb(51, 51, 51) !important;
    padding-top: 75px !important;
}

/* Override Cassiopeia em-based padding to match original site (0px padding) */
header.container-header > .grid-child,
header.container-header > .grid-child:first-child,
header.container-header > .grid-child:last-child {
    padding: 0 !important;
}

header.container-header .container-nav {
    padding: 0 !important;
    padding-bottom: 0 !important;
}

header.container-header nav {
    margin-top: 0 !important;
}

/* clamp header content to ~1140px while keeping full-width background */
header.container-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030 !important;
    width: 100% !important;
    background: #fff !important;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 0 3px rgba(0, 0, 0, 1);
    padding-inline: max(16px, calc(50% - 570px));
    /* 1140/2 */
    padding-block: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

/* two header columns */
header.container-header>.grid-child:first-child {
    flex: 0 0 auto;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

header.container-header>.grid-child:last-child {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    width: auto !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* container-nav holds menu + CTA button inline */
header.container-header .container-nav {
    flex-wrap: nowrap !important;
    align-items: center !important;
    /* gap removed - was creating excessive 20px gaps */
}

/* logo */
header.container-header .navbar-brand {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

header.container-header .navbar-brand img {
    height: 50px;
    width: auto;
    display: block;
}

/* ----- menus (works for both "Default" and "Collapsible Dropdown") ------- */
header.container-header nav.navbar {
    margin-left: 20px !important;
    margin-right: 20px !important;
    /* 20px gap to CTA button */
}

header.container-header .navbar-collapse {
    display: flex !important;
}

header.container-header .navbar-nav {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 0;
    white-space: nowrap;
    align-items: center;
    flex: 0 1 auto !important;
}

header.container-header .navbar-nav .nav-item {
    white-space: nowrap;
}

header.container-header .mod-menu {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
    align-items: center;
    flex: 0 1 auto !important;
}

header.container-header .mod-menu>li {
    white-space: nowrap;
}

/* Remove unwanted margin/padding on menu items to match original spacing */
header.container-header .navbar-nav .nav-item,
header.container-header .mod-menu>li {
    margin: 0 !important;
    padding: 0 !important;
}

/* visible link colours on white header + consistent vertical alignment */
header.container-header .navbar-nav .nav-link,
header.container-header .mod-menu a {
    color: #212529 !important;
    font-family: Halcyon-Medium, sans-serif !important;
    font-size: 16.5px !important;
    font-weight: 400;
    padding: 26px 15px;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    text-decoration: none;
}

header.container-header .navbar-nav .nav-link:hover,
header.container-header .navbar-nav .nav-link:focus,
header.container-header .navbar-nav .nav-link.active,
header.container-header .mod-menu a:hover,
header.container-header .mod-menu a:focus {
    color: #333333 !important;
    text-decoration: none;
}

/* dropdowns */
header.container-header .dropdown-menu {
    background: #fff;
    color: #212529;
    border-radius: .5rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    z-index: 1000;
}

@media (min-width:1360px) {
    header.container-header .dropdown:hover>.dropdown-menu {
        display: block;
    }
}

/* Add dropdown indicators (▾) to parent menu items */
header.container-header .mod-menu>li.deeper>a::after,
header.container-header .navbar-nav>li.dropdown>a::after,
header.container-header .mod-menu>li.parent>a::after {
    content: " ▾";
    font-size: 0.8em;
    margin-left: 2px;
}

/* ==========================================================================
   SUBMENU — Position and styling for dropdown menus
   ========================================================================== */

/* Position parent items relatively for absolute submenu positioning */
header.container-header .mod-menu>li.parent {
    position: relative;
}

/* Hide submenu by default */
header.container-header .mod-menu .parent>ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
}

/* Show submenu on hover for desktop */
@media (min-width: 1360px) {
    header.container-header .mod-menu .parent:hover>ul {
        display: block;
    }
}

/* Submenu item styling */
header.container-header .mod-menu .parent>ul>li {
    white-space: normal;
    margin: 0;
    padding: 0;
}

/* Submenu links */
header.container-header .mod-menu .parent>ul>li>a {
    display: block;
    padding: 0.5rem 1rem;
    color: #212529 !important;
    font-weight: 400;
    text-decoration: none;
}

/* Submenu link hover */
header.container-header .mod-menu .parent>ul>li>a:hover,
header.container-header .mod-menu .parent>ul>li>a:focus {
    background: #f8f9fa;
    color: #333333 !important;
}

/* hamburger icon when “Collapsible Dropdown” is used */
header.container-header .navbar-toggler {
    border-color: rgba(33, 37, 41, .55);
}

header.container-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33,37,41,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   HEADER CTA BUTTON & LANGUAGE SWITCHER
   ========================================================================== */

/* CTA Button Module Container - make it inline with menu */
header.container-header .container-nav .mod-custom,
header.container-header .container-nav #mod-custom710 {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin-left: 25px;
}

/* CTA Button "Søk studieplass" */
header.container-header .cta-button,
header.container-header .btn-cta,
header.container-header a[href*="sok"].btn,
header.container-header .header-cta-button {
    background: #577e4e !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 6px 12px !important;
    font-family: Halcyon-Medium, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    transition: background 0.2s !important;
}

header.container-header .cta-button:hover,
header.container-header .btn-cta:hover {
    background: #45653e !important;
    color: #fff !important;
}

/* Language switcher flags */
header.container-header .language-switcher,
header.container-header .mod-languages {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    align-items: center !important;
}

header.container-header .mod-languages ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

header.container-header .mod-languages li {
    display: block !important;
}

header.container-header .language-switcher a,
header.container-header .mod-languages a {
    padding: 0 !important;
    display: block !important;
    line-height: 0 !important;
}

header.container-header .language-switcher img,
header.container-header .mod-languages img {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 12px !important;
    display: block !important;
    border: 1px solid #ddd !important;
    border-radius: 2px !important;
}

/* ==========================================================================
     ARTICLE PAGES (title, byline/date, widths)
     ========================================================================== */

/* Ensure article content aligns with header */
.container-component {
    padding-inline: max(16px, calc(50% - 570px));
}

/* Hide menu page title on article pages (shows "Home" incorrectly) */
.view-article .page-header h1 {
    display: none !important;
}

/* Style the article title (H2) as H1 - only in page-header */
.view-article .page-header h2 {
    font-family: 'Halcyon-Medium', sans-serif !important;
    font-size: 70px !important;
    font-weight: 500 !important;
    line-height: 77px !important;
    color: rgb(0, 0, 0) !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    letter-spacing: normal !important;
}

/* Content h2 headings - 30px like live site */
.view-article .com-content-article__body h2 {
    font-family: 'Halcyon-Medium', sans-serif !important;
    font-size: 30px !important;
    font-weight: 500 !important;
    line-height: 33px !important;
    color: rgb(0, 0, 0) !important;
    margin-top: 40px !important;
    margin-bottom: 28px !important;
}

/* Ensure article subtitle is not oversized */
.view-article h3,
.view-article h4 {
    font-family: 'Halcyon-Medium', sans-serif !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 26.4px !important;
    color: rgb(0, 0, 0) !important;
    margin-top: 40px !important;
    margin-bottom: 10px !important;
    border: none !important;
}

/* byline/date (stacked, no icons) */
.view-article .article-info-term,
.view-article .article-info [class^="icon-"],
.view-article .article-info [class*=" icon-"],
.view-article .article-info .category-name,
.view-article .article-info .hits {
    display: none !important;
}

.view-article dl.article-info {
    font-family: 'Halcyon-Regular', sans-serif !important;
    font-size: 15px !important;
    color: rgb(51, 51, 51) !important;
    margin-top: 10px !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    border: 0 !important;
    line-height: 1.8 !important;
    display: block;
}

.view-article dl.article-info dd {
    margin: 0;
    display: block;
}

/* Show author and publish date - each on own line */
.view-article dl.article-info dd.createdby,
.view-article dl.article-info dd.published {
    display: block !important;
}


/* lead paragraph */
.view-article .com-content-article__body>p:first-of-type {
    font-family: 'Halcyon-Medium', sans-serif !important;
    font-size: 23px !important;
    font-weight: 300 !important;
    line-height: 32.2px !important;
    color: rgb(51, 51, 51) !important;
    margin-top: 18px !important;
    margin-bottom: 20px !important;
}

/* Regular body paragraphs */
.view-article .com-content-article__body p {
    font-family: 'Halcyon-Medium', sans-serif !important;
    font-size: 17px !important;
    line-height: 27.2px !important;
    color: rgb(51, 51, 51) !important;
    margin-bottom: 16px !important;
    max-width: 652.5px !important;
}

/* Constrain headings to readable width */
.view-article .com-content-article__body h1,
.view-article .com-content-article__body h2,
.view-article .com-content-article__body h3,
.view-article .com-content-article__body h4,
.view-article .com-content-article__body h5,
.view-article .com-content-article__body h6 {
    max-width: 652.5px !important;
}

/* page width (1170px to match live site) */
@media (min-width:1200px) {

    .view-article .container-component,
    .view-article .container-breadcrumb {
        max-width: 1170px !important;
        margin-inline: auto !important;
        padding-inline: 15px !important;
    }
}

/* Article body content - full width within container */
.view-article .com-content-article__body {
    max-width: none !important;
    margin-left: 0 !important;
}

.view-article .article-full-image,
.view-article figure[class*="image"] {
    max-width: none;
}

/* Remove excessive spacing between breadcrumb and article content */
.view-article .container-component > main:first-child {
    margin-top: 0 !important;
}

/* ==========================================================================
   HOMEPAGE INTRO SECTION — Button styling and layout
   ========================================================================== */

/* Homepage intro section container */
.container-top-a {
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 16px;
}

/* General button styling - rounded pill shape with borders */
.btn,
.btn-default,
.btn-block {
    border-radius: 50px;
    border: 2px solid #ccc;
    text-decoration: none;
}

/* Success/Green button styling */
.btn-success {
    color: #fff;
    background-color: #577E4E;
    border-size: 0px;
    border-color: #577E4E;
    border-radius: 50px;
    border: 2px solid #577E4E;
}

.btn-success:hover,
.btn-success:focus,
.btn-success.focus,
.btn-success:active,
.btn-success.active,
.open>.dropdown-toggle.btn-success {
    color: #fff;
    background-color: #45653E;
    border-color: #45653E;
    border-size: 0px;
}

/* Search button specific styling */
.search-button .custom p .btn-success {
    background-color: #577E4E;
    border-radius: 50px;
    color: #fff;
    margin-top: -2px;
}

.search-button .custom p .btn-success:hover {
    color: #fff;
    background-color: #45653E;
}

/* Homepage button container styling */
.forside-knapp .btn-default {
    margin-bottom: 20px;
    min-height: 47px;
    font-size: 20px;
}

/* Button icon spacing */
button i,
.btn i {
    margin-left: 6px;
}

/* Button font family */
button {
    font-family: 'Halcyon-Medium', sans-serif;
}

.search-button i {
    margin-left: 6px;
}

/* Icon spacing */
.glyphicon {
    margin-right: 10px;
}

/* Homepage button container */
.forside-knapper {
    padding: 15px 15px 0px;
}

/* Hide the spacer div to match original site alignment */
.forside-knapper .visible-md {
    display: none !important;
}

/* Remove underline from button wrapper links */
.forside-knapper a,
.forside-knapper a:hover,
.forside-knapper a:focus,
.forside-knapp {
    text-decoration: none !important;
}

/* Force homepage buttons to stack vertically with fixed width */
.forside-knapper .btn,
.forside-knapper button,
.forside-knapper .btn-default,
.forside-knapper .btn-success,
.forside-knapper .btn-block {
    display: block !important;
    width: 360px !important;
    max-width: 100% !important;
    margin-bottom: 10px !important;
    padding: 10px 16px !important;
    font-family: 'Halcyon-Medium', sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.33 !important;
    border-radius: 50px !important;
    text-align: center !important;
    text-decoration: none !important;
}

/* White buttons - ensure white background and proper border */
.forside-knapper .btn-default {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 2px solid #cccccc !important;
}

/* Green success button - maintain green styling */
.forside-knapper .btn-success {
    background-color: #577E4E !important;
    color: #ffffff !important;
    border: 2px solid #577E4E !important;
}

/* Constrain and center ONLY the second section module container (not hero) */
.mod-custom.custom:has(.main-page-2017) {
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Main page section spacing */
.main-page-2017 {
    margin-top: 40px;
    margin-left: -15px !important;
    margin-right: -15px !important;
    max-width: 1170px !important;
}

/* Fix column padding to match original site (15px instead of 8px) */
.main-page-2017 .col-md-7,
.main-page-2017 .col-md-4 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Elevator pitch section */
.elevator-pitch {
    margin-bottom: 30px;
}

.elevator-pitch h1 {
    margin-top: 15px;
    font-size: 42px;
    font-family: 'Halcyon-Medium', sans-serif !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    color: #000000 !important;
}

.elevator-pitch h2 {
    font-family: 'Halcyon-Medium', sans-serif !important;
    font-size: 30px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

.elevator-pitch h3 {
    font-family: 'Halcyon-Regular', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.3;
}

/* Animated scrolling text */
.h2-animate-phrases {
    display: flex;
    align-items: center;
}

.h2-animate-phrases h2 {
    line-height: 1.4;
}

.scrolling-text {
    display: inline-block;
    overflow: hidden;
    height: 1.4em;
    vertical-align: bottom;
}

.scrolling-text div {
    color: rgb(255, 47, 2) !important;
    animation: scrollText 20s infinite;
}

@keyframes scrollText {

    0%,
    10% {
        transform: translateY(0);
    }

    12%,
    20% {
        transform: translateY(-100%);
    }

    22%,
    30% {
        transform: translateY(-200%);
    }

    32%,
    40% {
        transform: translateY(-300%);
    }

    42%,
    50% {
        transform: translateY(-400%);
    }

    52%,
    60% {
        transform: translateY(-500%);
    }

    62%,
    70% {
        transform: translateY(-600%);
    }

    72%,
    80% {
        transform: translateY(-700%);
    }

    82%,
    90% {
        transform: translateY(-800%);
    }

    92%,
    98% {
        transform: translateY(-900%);
    }

    100% {
        transform: translateY(0);
    }
}

/* Apply button 2024 styling */
.divapplybutton2024 {
    font-size: 26px;
    padding: 0.7em;
    padding-top: 0px;
}

.divapplybutton2024 p a {
    font-size: 20px;
    padding: 0.7em;
}

/* Career and bachelor abroad buttons */
.career2024contentbutton {
    margin-top: 20px;
    margin-bottom: 10px;
    min-height: 30px;
    min-width: 200px;
}

/* Orange/red button with stronger specificity */
.bachelorutlandet2024 .bachelorutlandet2024button,
button.bachelorutlandet2024button,
.btn.bachelorutlandet2024button {
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    min-height: 30px !important;
    min-width: 200px !important;
    padding: 10px 25px !important;
    color: #fff !important;
    background-color: #ff2f02 !important;
    border: 2px solid #ff2f02 !important;
    border-radius: 50px !important;
}

.bachelorutlandet2024 .bachelorutlandet2024button:hover,
button.bachelorutlandet2024button:hover,
.btn.bachelorutlandet2024button:hover {
    color: #fff !important;
    background-color: #CC2500 !important;
    border-color: #CC2500 !important;
}

/* Study guidance button */
.leadstudyguidance2024button {
    margin-top: 30px;
    margin-bottom: 10px;
    min-height: 30px;
    font-size: 25px;
}

/* Online studies middle section buttons */
.nettstudier2024knappermidtseksjon {
    margin-bottom: 30px;
}

/* Center buttons below FAQ accordion on nettstudier page */
/* Hide empty spacer div and center the button container */
.nettstudier2024knappermidtseksjon .col-md-12 > .col-md-4:first-child:empty {
    display: none;
}

.nettstudier2024knappermidtseksjon .divapplybutton2024 {
    float: none;
    margin: 0 auto;
    margin-top: 60px;
    width: 33.33333%;
}

/* Accordion buttons in thumbnails */
.thumbnail #accordion a.btn {
    min-width: 200px;
    margin-top: 10px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .elevator-pitch h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .main-page-2017 {
        margin-top: 20px;
    }

    .elevator-pitch h1 {
        font-size: 38px;
        max-width: calc(100vw - 30px) !important;
        width: auto !important;
    }

    .forside-knapper {
        padding-right: 60px;
        padding-left: 60px;
    }

    .forside-knapper .btn,
    .forside-knapper button,
    .forside-knapper .btn-default,
    .forside-knapper .btn-success,
    .forside-knapper .btn-block {
        width: 100% !important;
        max-width: 255px !important;
    }

    .forside-knapp .btn-default {
        font-size: 18px;
    }

    .btn-lg {
        padding: 8px 16px;
    }
}

/* Small laptops */
@media (min-width: 992px) and (max-width: 1199px) {
    .elevator-pitch h1 {
        font-size: 34px;
        margin-top: 30px;
        margin-bottom: 40px;
    }
}

/* ==========================================================================
     FOOTER — force white background, dark text, no gradient
     ========================================================================== */

/* Make module wrapper transparent so Bootstrap columns work */
footer .mod-custom,
footer [id^="mod-custom"] {
    display: contents;
}

/* kill Cassiopeia gradient layers (cover both old/new markup) */
footer.site-footer::before,
footer.footer::before,
.wrap-footer::before,
.container-footer::before {
    content: none !important;
    background: none !important;
}

/* force containers to white + dark text */
footer.site-footer,
footer.footer,
footer .container-footer,
.grid-child.container-footer {
    background: #ffffff !important;
    color: #212529 !important;
    border-top: 1px solid #f0efef;
}

/* inner spacing */
footer.site-footer .grid-child.container-footer,
footer.footer .grid-child.container-footer {
    padding-top: 60px !important;
    padding-bottom: 40px !important;
}

/* Footer container alignment - match article width */
footer .container {
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 16px;
}

/* Footer row - ensure proper column spacing */
footer .row {
    --bs-gutter-x: 50px;
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
}

footer .row>* {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}

/* text + links */
footer.site-footer h4,
footer.footer h4 {
    font-family: 'Halcyon-Medium', sans-serif;
    font-size: 19px;
    color: #212529;
    margin-bottom: 20px;
}

/* Footer body text - more compact */
footer.footer p,
footer.footer .grey,
footer.site-footer p {
    font-size: 14px !important;
    line-height: 22.4px !important;
}

footer.footer a,
footer.site-footer a {
    font-size: 14px !important;
    line-height: 22.4px !important;
    font-family: Halcyon-SemiBold !important;
}

footer.site-footer a,
footer.footer a {
    color: #212529 !important;
    text-decoration: none;
}

footer.site-footer a:hover,
footer.site-footer a:focus,
footer.footer a:hover,
footer.footer a:focus {
    color: #808080 !important;
    text-decoration: underline;
}

/* buttons inside footer to match old site */
footer.site-footer .btn,
footer.site-footer .btn-primary,
footer.site-footer .btn-light,
footer.site-footer .btn-outline-light,
footer.site-footer .btn-outline-primary,
footer.footer .btn,
footer.footer .btn-primary,
footer.footer .btn-light,
footer.footer .btn-outline-light,
footer.footer .btn-outline-primary {
    display: block !important;
    background: #ffffff !important;
    border: 2px solid #cccccc !important;
    border-radius: 50px !important;
    color: #333333 !important;
    padding: 6px 12px !important;
    font-size: 15px;
    font-family: 'Halcyon-Medium', sans-serif;
    box-shadow: none !important;
    transition: .2s;
    margin-bottom: 15px !important;
    width: 100% !important;
    text-align: center !important;
}

footer.site-footer .btn:hover,
footer.site-footer .btn:focus,
footer.footer .btn:hover,
footer.footer .btn:focus {
    background: #f8f9fa !important;
    border-color: #cccccc !important;
    color: #333333 !important;
}

footer.site-footer .mod-list li a,
footer.footer .mod-list li a {
    text-transform: none !important;
}



/* ===== Footer palette tweak: #fafafa bg, #333 text/links ===== */
footer.site-footer,
footer.footer,
footer .container-footer,
.grid-child.container-footer {
    background: #fafafa !important;
    color: #333 !important;
}

/* headings slightly darker for hierarchy */
footer.site-footer h4,
footer.footer h4 {
    color: #111 !important;
}

/* links in footer */
footer.site-footer a,
footer.footer a {
    color: #333 !important;
    text-decoration: underline;
}

footer.site-footer a:hover,
footer.site-footer a:focus,
footer.footer a:hover,
footer.footer a:focus {
    color: #808080 !important;
    text-decoration: underline;
}

/* footer buttons - no text decoration */
footer.site-footer .btn,
footer.site-footer .btn-primary,
footer.site-footer .btn-light,
footer.site-footer .btn-outline-light,
footer.site-footer .btn-outline-primary,
footer.footer .btn,
footer.footer .btn-primary,
footer.footer .btn-light,
footer.footer .btn-outline-light,
footer.footer .btn-outline-primary {
    text-decoration: none !important;
}

/* Remove underline from links wrapping buttons */
footer.site-footer a:has(.btn),
footer.footer a:has(.btn) {
    text-decoration: none !important;
}

footer.site-footer a:has(.btn):hover,
footer.site-footer a:has(.btn):focus,
footer.footer a:has(.btn):hover,
footer.footer a:has(.btn):focus {
    text-decoration: none !important;
}

footer.footer .btn:hover,
footer.footer .btn:focus {
    text-decoration: none !important;
}

/* ==========================================================================
   BREADCRUMBS — match production styling exactly
   ========================================================================== */

/* No background, transparent container */
.container-breadcrumb,
nav.mod-breadcrumbs__wrapper {
    background: transparent;
    padding: 6px 0;
    margin: 0;
}

.container-breadcrumb .breadcrumb,
.mod-breadcrumbs {
    font-size: 14px;
    color: #999;
    padding: 0 !important;
    margin: 0;
    background: transparent;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* Override Bootstrap px-3 class */
.mod-breadcrumbs.px-3 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Hide "You are here:" text and default location icon */
.mod-breadcrumbs__here,
li.mod-breadcrumbs__here,
.mod-breadcrumbs__divider,
li.mod-breadcrumbs__divider {
    display: none !important;
}

/* Breadcrumb items */
.container-breadcrumb .breadcrumb-item,
.mod-breadcrumbs__item {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
}

/* Breadcrumb links */
.container-breadcrumb .breadcrumb-item a,
.mod-breadcrumbs__item a {
    color: #999;
    text-decoration: none;
}

.container-breadcrumb .breadcrumb-item a:hover,
.mod-breadcrumbs__item a:hover {
    color: #808080;
    text-decoration: underline;
}

/* Current page (active/last item) - darker */
.container-breadcrumb .breadcrumb-item.active,
.mod-breadcrumbs__item:last-child {
    color: #666;
}

/* Style breadcrumb separators as right arrows */
.container-breadcrumb .breadcrumb-item+.breadcrumb-item::before,
.mod-breadcrumbs__item+.mod-breadcrumbs__item::before {
    content: "›";
    color: #ccc;
    padding: 0 8px;
    font-size: 16px;
    font-weight: normal;
}

/* ==========================================================================
   MENU — Hide "Hjem" (Home) menu item
   ========================================================================== */
/* Hide menu item with "hjem" in the link */
header.container-header .mod-menu>li>a[href*="hjem"],
header.container-header .navbar-nav>li>a[href*="hjem"] {
    display: none !important;
}

/* Or hide by position if it's always first */
header.container-header .mod-menu>li:first-child:has(a[href*="hjem"]),
header.container-header .navbar-nav>li:first-child:has(a[href*="hjem"]) {
    display: none !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE — Hamburger menu and mobile navigation
   ========================================================================== */

/* Add hamburger menu button for mobile */
header.container-header .navbar-toggler {
    display: none;
    position: relative;
    padding: 10px;
    background: transparent;
    border: 2px solid rgba(33, 37, 41, 0.55);
    border-radius: 4px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

header.container-header .navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: rgba(33, 37, 41, 0.85);
    position: relative;
    transition: background-color 0.3s;
}

header.container-header .navbar-toggler-icon::before,
header.container-header .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: rgba(33, 37, 41, 0.85);
    left: 0;
    transition: transform 0.3s;
}

header.container-header .navbar-toggler-icon::before {
    top: -7px;
}

header.container-header .navbar-toggler-icon::after {
    bottom: -7px;
}

/* Hide close button on desktop - only show in mobile menu overlay */
.mobile-menu-close {
    display: none;
}

/* Tablet/laptop breakpoint - hide CTA and show hamburger menu to prevent collision */
@media (max-width: 1359px) {

    /* Adjust header layout for mobile */
    header.container-header {
        padding-inline: 16px !important;
        gap: 12px !important;
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    /* Remove extra padding - content should align to logo edge */
    .container-component {
        padding-inline: 0 !important;
    }

    /* Add padding to breadcrumb wrapper to match header */
    nav.mod-breadcrumbs__wrapper {
        padding-inline: 16px !important;
    }

    /* Add padding to article content */
    .view-article {
        padding-inline: 16px !important;
    }

    /* Logo container - don't let it expand and remove centering margin */
    header.container-header>.grid-child:first-child {
        flex: 0 0 auto !important;
        max-width: max-content !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    /* Make logo smaller on mobile */
    header.container-header .navbar-brand {
        max-width: max-content !important;
    }

    header.container-header .navbar-brand img {
        height: 36px !important;
    }

    /* Override desktop last-child rule - don't let it expand */
    header.container-header>.grid-child:last-child {
        flex: 0 0 auto !important;
        justify-content: flex-start !important;
        margin-left: auto !important;
    }

    /* Container-nav - just hold hamburger */
    header.container-header .container-nav {
        min-width: 44px !important;
        max-width: 44px !important;
        width: 44px !important;
    }

    /* Container-nav layout for mobile */
    header.container-header .container-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }

    /* Show hamburger menu */
    header.container-header .navbar-toggler {
        display: flex !important;
    }

    /* Hide CTA button on tablet/mobile */
    header.container-header .container-nav .mod-custom,
    header.container-header .container-nav #mod-custom710 {
        display: none !important;
    }

    /* Hide language switcher on tablet/mobile */
    header.container-header .language-switcher,
    header.container-header .mod-languages {
        display: none !important;
    }

    /* Hide regular menu by default */
    header.container-header .mod-menu {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        padding: 60px 20px 20px;
        overflow-y: auto;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0 !important;
    }

    /* Show menu when active */
    header.container-header .mod-menu.show {
        display: flex !important;
    }

    /* Close button for mobile menu */
    .mobile-menu-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        background: transparent;
        border: 2px solid rgba(33, 37, 41, 0.55);
        border-radius: 4px;
        font-size: 32px;
        line-height: 1;
        color: rgba(33, 37, 41, 0.85);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: background 0.2s, color 0.2s;
    }

    .mobile-menu-close:hover,
    .mobile-menu-close:focus {
        background: #f8f9fa;
        color: #d12e1a;
    }

    /* Mobile menu items - vertical stack */
    header.container-header .mod-menu>li {
        width: 100%;
        border-bottom: 1px solid #e8e8e8;
    }

    header.container-header .mod-menu>li>a {
        display: block !important;
        padding: 16px 0 !important;
        font-size: 18px !important;
        width: 100%;
    }

    /* Submenu styling for mobile */
    header.container-header .mod-menu .parent>ul {
        position: static !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 0 0 20px !important;
        margin: 0 !important;
        background: #f8f9fa !important;
    }

    header.container-header .mod-menu .parent>ul>li {
        border-bottom: 1px solid #e0e0e0;
    }

    header.container-header .mod-menu .parent>ul>li:last-child {
        border-bottom: none;
    }

    header.container-header .mod-menu .parent>ul>li>a {
        padding: 12px 0 !important;
        font-size: 16px !important;
    }

    /* Mobile submenu always visible when parent is opened */
    header.container-header .mod-menu .parent.show>ul {
        display: block !important;
    }
}

/* Mobile breakpoint - even more compact */
@media (max-width: 767px) {
    header.container-header .navbar-brand img {
        height: 32px !important;
    }

    header.container-header {
        padding-inline: 12px !important;
    }

    /* Remove extra padding - content should align to logo edge */
    .container-component {
        padding-inline: 0 !important;
    }

    /* Add padding to breadcrumb wrapper to match header */
    nav.mod-breadcrumbs__wrapper {
        padding-inline: 12px !important;
    }

    /* Add padding to article content */
    .view-article {
        padding-inline: 12px !important;
    }

    /* Article content adjustments for mobile */
    .view-article .page-header h2,
    .view-article h2 {
        font-size: clamp(32px, 8vw, 48px) !important;
        line-height: 1.1 !important;
    }

    .view-article .com-content-article__body>p:first-of-type {
        font-size: clamp(18px, 4.5vw, 23px) !important;
    }

    .view-article .com-content-article__body p {
        font-size: 16px !important;
        line-height: 25.6px !important;
    }

    /* Adjust breadcrumb for mobile */
    .container-breadcrumb,
    .mod-breadcrumbs {
        font-size: 13px !important;
    }

    /* Footer adjustments for mobile */
    footer .row {
        --bs-gutter-x: 30px;
    }

    footer .col-md-4 {
        margin-bottom: 30px;
    }
}

/* Very small mobile devices */
@media (max-width: 374px) {
    header.container-header .navbar-brand img {
        height: 28px !important;
    }

    header.container-header {
        padding-inline: 10px !important;
    }

    /* Remove extra padding - content should align to logo edge */
    .container-component {
        padding-inline: 0 !important;
    }

    /* Add padding to breadcrumb wrapper to match header */
    nav.mod-breadcrumbs__wrapper {
        padding-inline: 10px !important;
    }

    /* Add padding to article content */
    .view-article {
        padding-inline: 10px !important;
    }
}

/* ==========================================================================
   RESPONSIVE BODY PADDING — Match header height at each breakpoint
   ========================================================================== */

/* Tablet/laptop breakpoint - header is shorter due to 36px logo */
@media (max-width: 1359px) {
    body {
        padding-top: 45px !important;
    }
}

/* Mobile breakpoint - header is even shorter due to 32px logo */
@media (max-width: 767px) {
    body {
        padding-top: 40px !important;
    }
}

/* Very small mobile devices - header uses 28px logo */
@media (max-width: 374px) {
    body {
        padding-top: 36px !important;
    }
}

/* ==========================================================================
   RESPONSIVE VIDEO EMBED (Vimeo/YouTube)
   ========================================================================== */

/* Responsive embed wrapper - creates aspect ratio container */
.embed-responsive {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* 16:9 aspect ratio (56.25% = 9/16) */
.embed-responsive-16by9 {
    padding-bottom: 56.25% !important;
}

/* iframe fills the container */
.embed-responsive iframe,
.embed-responsive-item {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 30px !important;
}

/* ==========================================================================
   NEWS CARDS (Featured Articles)
   ========================================================================== */

/* News grid container */
.blog-featured {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
}

/* Hide breadcrumb on featured articles view (homepage) */
.view-featured .mod-breadcrumbs__wrapper {
    display: none !important;
}

/* Nyheter heading (matches original site) */
#mod-custom125 h2,
.blog-featured h2 {
    font-family: Halcyon-Medium !important;
    font-size: 30px !important;
    font-weight: 500 !important;
    color: rgb(0, 0, 0) !important;
    line-height: 42px !important;
    margin-top: 50px !important;
    margin-bottom: 10px !important;
}

/* News grid rows */
.news-grid .row {
    margin: 0 -15px;
}

.news-grid .row>* {
    padding: 0 15px;
}

/* Individual news card */
.news-card {
    background-color: transparent !important;
    border-radius: 15px !important;
    margin-bottom: 40px !important;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
}

/* News card link - remove default link styling */
.news-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.news-card-link:hover,
.news-card-link:focus {
    text-decoration: none !important;
    color: inherit;
}

/* News card image wrapper */
.news-card-image {
    overflow: hidden !important;
    border-radius: 15px !important;
}

/* News card image with zoom effect */
.news-card-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 15px !important;
    transition: transform 0.8s !important;
}

.news-card:hover .news-card-img {
    transform: scale(1.1) !important;
}

/* News card body (text content) */
.news-card-body {
    background-color: rgb(255, 255, 255) !important;
    padding: 25px 0px 20px !important;
    border-bottom-left-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
}

/* News card title */
.news-card-title {
    font-size: 24px !important;
    font-weight: 500 !important;
    font-family: Halcyon-Medium !important;
    color: rgb(0, 0, 0) !important;
    line-height: 26.4px !important;
    margin-top: 0px !important;
    margin-bottom: 10px !important;
}

/* News card intro text */
.news-card-intro {
    font-size: 17px !important;
    line-height: 27.2px !important;
    color: rgb(51, 51, 51) !important;
}

.news-card-intro p {
    margin-bottom: 10px !important;
    font-size: 17px !important;
    line-height: 27.2px !important;
}

/* Adjust leading articles (larger cards) on mobile */
@media (max-width: 767px) {

    .news-grid-leading .col-md-6,
    .news-grid-intro .col-md-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Adjust intro articles (4 column grid) on tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .news-grid-intro .col-md-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* ==========================================================================
   NETTSTUDIER PAGE - "Nettstudier som lønner seg" section
   ========================================================================== */

/* Section container - spacing from hero image */
.leadrow2024 {
    margin-top: 50px !important;
}

/* Lead paragraph styling - match original site */
.programlead2024 {
    font-family: Halcyon-Medium !important;
    font-size: 22px !important;
    line-height: 30.8px !important;
    color: rgb(51, 51, 51) !important;
}

/* H1 heading on Nettstudier page - override Cassiopeia defaults */
.leadrow2024 h1 {
    font-family: Halcyon-Medium !important;
    font-weight: 500 !important;
    line-height: 44px !important;
    color: rgb(0, 0, 0) !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
}

/* Primary button "Søk på nettstudier" */
.divapplybutton2024 .btn-success {
    font-family: Halcyon-SemiBold !important;
}

/* Secondary button "Nettstudier oversikt" - white background with border */
.divapplybutton2024 .btn-default {
    font-family: Halcyon-Medium !important;
    background-color: rgb(255, 255, 255) !important;
    color: rgb(51, 51, 51) !important;
    padding: 10px 16px !important;
}

/* Force buttons to full width block display (matches original 353.6px width) */
.divapplybutton2024 .btn,
.divapplybutton2024 .btn-success,
.divapplybutton2024 .btn-default {
    display: block !important;
    width: 100% !important;
}

/* Container width to match original - 1170px instead of 1320px */
@media (min-width: 1200px) {
    .container {
        max-width: 1170px !important;
    }
}

/* ==========================================================================
   KOMMENDE OPPSTARTER - Online Study Start Dates Section
   ========================================================================== */

/* Section container - light green background with rounded corners */
.row.onlinestartups {
    background-color: rgb(230, 239, 233) !important;
    padding: 25px 15px 35px !important;
    margin: 30px -15px 50px !important;
    border-radius: 30px !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

/* Section heading styling - full width */
.row.onlinestartups h2 {
    font-family: Halcyon-Medium !important;
    font-size: 30px !important;
    font-weight: 500 !important;
    color: rgb(0, 0, 0) !important;
    line-height: 33px !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* Date item columns - 25% width on desktop (4 columns) */
.row.onlinestartups .col-md-3 {
    padding: 0px 15px !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* Desktop - 4 columns in a row */
@media (min-width: 992px) {
    .row.onlinestartups .col-md-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

/* Date headings (H3) */
.row.onlinestartups h3 {
    font-family: Halcyon-Medium !important;
    font-size: 25px !important;
    font-weight: 500 !important;
    color: rgb(0, 0, 0) !important;
    line-height: 27.5px !important;
    margin: 30px 0px 10px !important;
}

/* Date links - remove blue color and underline */
.row.onlinestartups h3 a {
    font-family: Halcyon-Medium !important;
    font-size: 25px !important;
    font-weight: 500 !important;
    color: rgb(0, 0, 0) !important;
    text-decoration: none !important;
}

/* Date link hover state - keep black, no underline */
.row.onlinestartups h3 a:hover,
.row.onlinestartups h3 a:focus {
    color: rgb(0, 0, 0) !important;
    text-decoration: none !important;
}

/* Calendar icons - keep red color */
.row.onlinestartups i.fa-calendar-days {
    font-size: 27px !important;
    color: rgb(255, 47, 2) !important;
    margin-right: 10px !important;
}

/* ==========================================================================
   HVORFOR VELGE NETTSTUDIER - Content Section Typography
   ========================================================================== */

/* H3 headings in main content area */
.container h3,
.container-component h3 {
    font-family: Halcyon-Medium !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    color: rgb(0, 0, 0) !important;
    line-height: 26.4px !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
}

/* Paragraphs in main content area - use Halcyon-Medium */
.container p,
.container-component p {
    font-family: Halcyon-Medium !important;
    font-size: 17px !important;
    line-height: 27.2px !important;
    color: rgb(51, 51, 51) !important;
    margin-bottom: 16px !important;
}

/* ==========================================================================
   ULIKE TYPER NETTSTUDIER - Accordion Panel Styling
   ========================================================================== */

/* Section heading - centered with proper spacing */
h3.studieinfo2024header {
    text-align: center !important;
    margin-bottom: 30px !important;
}

/* Accordion panels - spacing between items */
.panel-default {
    margin-bottom: 10px !important;
}

.panel-default:first-of-type {
    margin-top: 0px !important;
}

/* Accordion panel headings - light green background with rounded corners */
.panel-heading {
    background-color: rgb(230, 239, 233) !important;
    border-radius: 10px !important;
    padding: 15px 20px !important;
    border: none !important;
}

/* AI accordion panel - pink/purple background */
.panel-ai .panel-heading {
    background-color: rgb(233, 216, 230) !important;
    border-radius: 12px !important;
}

/* AI panel heading link - larger font to match original */
.panel-ai .panel-heading a {
    font-size: 24px !important;
    line-height: 26.4px !important;
}

/* AI panel body H4 headings */
.panel-ai .panel-body h4 {
    font-size: 19px !important;
    font-weight: 500 !important;
    font-family: Halcyon-Medium !important;
    line-height: 20.9px !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
}

.panel-ai .panel-body h4:first-child {
    margin-top: 0 !important;
}

/* AI panel body - pink border on 3 sides (not top) */
.panel-ai .panel-body {
    border-right: 2px solid rgb(233, 216, 230) !important;
    border-bottom: 2px solid rgb(233, 216, 230) !important;
    border-left: 2px solid rgb(233, 216, 230) !important;
    border-top: none !important;
    border-radius: 0 0 12px 12px !important;
    padding: 20px 7px 10px 14px !important;
}

/* Accordion panel heading links - black color, no underline */
.panel-heading a {
    color: rgb(0, 0, 0) !important;
    font-size: 21px !important;
    font-weight: 500 !important;
    font-family: Halcyon-Medium !important;
    text-decoration: none !important;
    line-height: 23.1px !important;
}

.panel-heading a:hover,
.panel-heading a:focus {
    color: rgb(0, 0, 0) !important;
    text-decoration: none !important;
}

/* Remove margins from H3 inside accordion panel headings */
.panel-heading h3.panel-title {
    margin: 0 !important;
}

/* Float the chevron icon to the right */
.panel-heading a i.fa-chevron-down {
    float: right !important;
}

/* Fix Bootstrap 3 collapse compatibility with Cassiopeia's Bootstrap 5 CSS */
.collapse.in {
    display: block !important;
}

.collapse:not(.in) {
    display: none !important;
}

/* Accordion panel body - padding for expanded content */
.panel-body {
    padding: 20px 7px 10px 14px !important;
}

/* Accordion panel body links - black color with underline */
.panel-body a:not(.nounderline) {
    color: rgb(0, 0, 0) !important;
    text-decoration: underline !important;
}

.panel-body a:not(.nounderline):hover,
.panel-body a:not(.nounderline):focus {
    color: rgb(0, 0, 0) !important;
    text-decoration: underline !important;
}

/* Links with nounderline class - no underline, SemiBold font */
.panel-body a.nounderline {
    color: rgb(0, 0, 0) !important;
    font-family: Halcyon-SemiBold !important;
    text-decoration: none !important;
}

.panel-body a.nounderline:hover,
.panel-body a.nounderline:focus {
    color: rgb(0, 0, 0) !important;
    text-decoration: none !important;
}

/* Button and button-styled links in accordion panel body - match original styling */
.panel-body button.btn,
.panel-body a.btn {
    font-family: Halcyon-Medium !important;
    font-size: 18px !important;
    background-color: rgb(255, 255, 255) !important;
    border: 2px solid rgb(204, 204, 204) !important;
    border-radius: 50px !important;
    color: rgb(51, 51, 51) !important;
}

.panel-body button.btn:hover,
.panel-body button.btn:focus,
.panel-body a.btn:hover,
.panel-body a.btn:focus {
    background-color: rgb(255, 255, 255) !important;
    border: 2px solid rgb(204, 204, 204) !important;
    color: rgb(51, 51, 51) !important;
}

/* General button styling for all .btn links - ensure white background and stable hover */
a.btn-default {
    background-color: rgb(255, 255, 255) !important;
    color: rgb(51, 51, 51) !important;
    border: 2px solid rgb(204, 204, 204) !important;
}

a.btn-default:hover,
a.btn-default:focus {
    background-color: rgb(255, 255, 255) !important;
    color: rgb(51, 51, 51) !important;
    border: 2px solid rgb(204, 204, 204) !important;
}

/* ==========================================================================
   INTERVJUER MED NETTSTUDENTER - Featured Articles Section
   ========================================================================== */

/* Section heading styling - matches original site */
.studietilbud-hovedside h2 {
    font-family: 'Halcyon-Medium', -apple-system, sans-serif !important;
    font-size: 30px !important;
    font-weight: 500 !important;
    line-height: 33px !important;
    margin-top: 25px !important;
    margin-bottom: 30px !important;
    color: rgb(0, 0, 0) !important;
}

/* Reduce gap before featured articles (was 117px, should be ~30px) */
.studietilbud-hovedside .blog-featured {
    margin-top: 0 !important;
}

/* Override inline margin-top on news-grid-intro (was 40px from template) */
.studietilbud-hovedside .news-grid-intro {
    margin-top: 0 !important;
}

/* Reduce container-banner bottom margin for this page */
.studietilbud-hovedside .container-banner {
    margin-bottom: 0 !important;
}

/* Reduce main element top margin for this page */
.studietilbud-hovedside .container-component main {
    margin-top: 0 !important;
}

/* "Les flere intervjuer" link styling */
.studietilbud-hovedside .blog-featured p.more-interviews-link {
    font-family: 'Halcyon-Medium', sans-serif !important;
    font-size: 21px !important;
    color: rgb(51, 51, 51) !important;
    margin-top: 30px !important;
}

.studietilbud-hovedside .blog-featured p.more-interviews-link a {
    font-family: 'Halcyon-SemiBold', sans-serif !important;
    font-size: 21px !important;
    color: rgb(0, 0, 0) !important;
    text-decoration: underline !important;
}

.studietilbud-hovedside .blog-featured p.more-interviews-link a:hover {
    color: rgb(0, 0, 0) !important;
}

/* =====================================================
   Studieveiledning Hero Section (Få studieveiledning)
   ===================================================== */

/* Container - relative positioned with fixed height */
.leadstudyguidance2024 {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    margin: 40px 0;
}

/* Image - fills container */
.leadstudyguidance2024img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay - dark semi-transparent background over image */
.leadstudyguidance2024overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content container - positioned in center-right area */
.leadstudyguidance2024content {
    text-align: center;
    max-width: 500px;
    padding: 20px;
}

/* Heading */
.leadstudyguidance2024content h2 {
    color: rgb(255, 255, 255) !important;
    font-size: 50px !important;
    font-weight: 500 !important;
    margin: 25px 0 10px !important;
    font-family: Halcyon-Medium !important;
}

/* Subheading */
.leadstudyguidance2024content h3 {
    color: rgb(255, 255, 255) !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    margin: 25px 0 10px !important;
    font-family: Halcyon-Medium !important;
    line-height: 1.4;
}

/* Button */
.leadstudyguidance2024button {
    background-color: rgb(255, 255, 255) !important;
    color: rgb(51, 51, 51) !important;
    font-size: 25px !important;
    font-family: Halcyon-Medium !important;
    padding: 10px 40px !important;
    border: none !important;
    border-radius: 50px !important;
    margin-top: 30px !important;
    cursor: pointer;
    display: inline-block;
}

.leadstudyguidance2024button:hover {
    background-color: rgb(240, 240, 240) !important;
    color: rgb(51, 51, 51) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .leadstudyguidance2024 {
        height: 400px;
    }

    .leadstudyguidance2024content h2 {
        font-size: 32px !important;
    }

    .leadstudyguidance2024content h3 {
        font-size: 18px !important;
    }

    .leadstudyguidance2024button {
        font-size: 18px !important;
        padding: 10px 30px !important;
    }
}

/* ==========================================================================
   ARTICLE CONTENT LINKS - Black to match original site
   ========================================================================== */

.com-content-article a:not(.btn),
.item-page a:not(.btn) {
    color: #000000;
    text-decoration: underline;
}

.com-content-article a:not(.btn):hover,
.item-page a:not(.btn):hover {
    color: #333333;
}

/* ==========================================================================
   FULL-WIDTH BANNER POSITION - For hero images
   ========================================================================== */

.container-banner.full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0;
}

.container-banner.full-width img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   JOBBMULIGHETER SECTION - Career opportunities with alumni feature
   ========================================================================== */

/* Left column with pink background */
.career2024listcol {
    padding: 30px 15px 30px 50px !important;
    background-color: rgb(233, 216, 230) !important;
    border-radius: 30px 0px 0px 30px !important;
}

.career2024listcontent {
    padding: 0px 40px 0px 0px !important;
}

/* Jobbmuligheter heading */
.career2024listcontent h3 {
    font-size: 24px !important;
    font-weight: 500 !important;
    font-family: Halcyon-Medium !important;
    line-height: 26.4px !important;
    color: rgb(0, 0, 0) !important;
    margin-bottom: 10px !important;
}

/* Jobbmuligheter paragraph */
.career2024listcontent p {
    font-size: 17px !important;
    font-weight: 400 !important;
    font-family: Halcyon-Medium !important;
    line-height: 27.2px !important;
    color: rgb(51, 51, 51) !important;
}

/* Jobbmuligheter list items */
.career2024listcontent li {
    font-size: 16px !important;
    font-weight: 400 !important;
    font-family: Halcyon-Medium !important;
    line-height: 24px !important;
}

/* Row containing Jobbmuligheter - 40px spacing above */
.row:has(.career2024listcol) {
    margin-top: 40px !important;
}

/* Row container - fixed height to match original */
.career2024listcol,
.career2024imgcol {
    height: 450px !important;
}

/* Right column - image with overlay */
.career2024imgcol {
    padding: 0 !important;
}

.career2024imgwrapper {
    position: relative !important;
    border-radius: 0px 30px 30px 0px !important;
    overflow: hidden !important;
    height: 100% !important;
}

.career2024imgwrapper img {
    width: 100% !important;
    height: auto !important;
    object-fit: fill !important;
}

.career2024imgoverlay {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
}

.career2024content {
    text-align: center !important;
}

.career2024content h3 {
    font-size: 36px !important;
    font-weight: 500 !important;
    font-family: Halcyon-Medium !important;
    color: rgb(255, 255, 255) !important;
    text-align: center !important;
    margin-bottom: 15px !important;
}

.career2024contentbutton {
    background-color: rgb(255, 255, 255) !important;
    color: rgb(51, 51, 51) !important;
    border-radius: 50px !important;
    padding: 10px 16px !important;
    border: none !important;
}

/* ========================================
   Studieinformasjon Section (Green/Sage Accordion)
   ======================================== */

/* Container spacing */
.studieinfo2024 {
    margin-top: 70px !important;
}

/* Section header */
.studieinfo2024header {
    font-size: 24px !important;
    font-weight: 500 !important;
    font-family: Halcyon-Medium !important;
    color: rgb(0, 0, 0) !important;
    text-align: center !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
}

/* Green/sage panel styling for Studieinformasjon */
.panel-studieinfo {
    border: none !important;
    margin-bottom: 10px !important;
    box-shadow: none !important;
}

.panel-studieinfo .panel-heading {
    background-color: rgb(230, 239, 233) !important;
    padding: 25px 25px 23px 20px !important;
    border-radius: 12px !important;
    border: none !important;
}

.panel-studieinfo .panel-title {
    font-size: 24px !important;
    font-weight: 500 !important;
    font-family: Halcyon-Medium !important;
}

.panel-studieinfo .panel-title a {
    color: rgb(0, 0, 0) !important;
    text-decoration: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.panel-studieinfo .panel-body {
    border: 2px solid rgb(230, 239, 233) !important;
    border-top: none !important;
    border-radius: 0 0 12px 12px !important;
    padding: 20px !important;
}

/* Chevron rotation when panel is expanded */
.panel-studieinfo .panel-title a i {
    transition: transform 0.3s ease !important;
}

.panel-studieinfo .panel-title a.collapsed i {
    transform: rotate(0deg) !important;
}

.panel-studieinfo .panel-title a:not(.collapsed) i,
.panel-studieinfo .panel-title a[aria-expanded="true"] i {
    transform: rotate(180deg) !important;
}

/* ========================================
   IT-utdanninger på Noroff Høyskole Section
   ======================================== */

/* Left column with teal/green background */
.bachelorutlandet2024infocol {
    background-color: rgb(230, 239, 233) !important;
    padding: 30px 30px 30px 50px !important;
    border-radius: 30px 0px 0px 30px !important;
    height: 400px !important;
}

.bachelorutlandet2024content h3 {
    font-size: 24px !important;
    font-weight: 500 !important;
    font-family: Halcyon-Medium !important;
    color: rgb(0, 0, 0) !important;
    margin-bottom: 10px !important;
}

.bachelorutlandet2024content p {
    font-size: 17px !important;
    font-weight: 400 !important;
    font-family: Halcyon-Medium !important;
    color: rgb(51, 51, 51) !important;
    line-height: 27.2px !important;
}

/* Links in the content - black with underline, semi-bold */
.bachelorutlandet2024content p a {
    color: rgb(0, 0, 0) !important;
    text-decoration: underline !important;
    font-family: Halcyon-SemiBold !important;
    font-weight: 400 !important;
}

/* Orange button */
button.bachelorutlandet2024button,
.bachelorutlandet2024button.btn {
    background-color: rgb(255, 47, 2) !important;
    color: rgb(255, 255, 255) !important;
    border-radius: 50px !important;
    padding: 10px 25px !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    font-family: Halcyon-Medium !important;
    border: none !important;
}

/* Right column - image */
.bachelorutlandet2024imgcol {
    padding: 0 !important;
    height: 400px !important;
}

.bachelorutlandet2024imgwrapper {
    border-radius: 0px 30px 30px 0px !important;
    overflow: hidden !important;
    height: 100% !important;
}

.bachelorutlandet2024img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Row spacing */
.row:has(.bachelorutlandet2024infocol) {
    margin-top: 40px !important;
}

/* ========================================
   Intervju med våre studenter Section
   ======================================== */

/* Testimonials section container */
.testimonials2024 {
    margin-top: 70px !important;
}

/* Card columns - match original Bootstrap 3 gutters (15px vs 7.5px) */
.testimonials2024 .col-md-3 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Section heading - centered */
.testimonials2024 h3 {
    font-family: Halcyon-Medium !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    color: rgb(0, 0, 0) !important;
    text-align: center !important;
    margin: 25px 0 40px !important;
}

/* Image wrapper - rounded top corners */
.testimonialwrapper2024 {
    border-radius: 30px 30px 0 0 !important;
    overflow: hidden !important;
}

/* Student image */
.testimonial2024img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Quote wrapper - teal background, rounded bottom */
.testimonial2024quotewrap {
    background-color: rgb(230, 239, 233) !important;
    padding: 30px 20px 20px 30px !important;
    border-radius: 0 0 30px 25px !important;
}

/* Blockquote with orange quote mark */
.blockquote2024pp {
    font-family: Halcyon-Medium !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    color: rgb(51, 51, 51) !important;
    line-height: 28.6px !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    border: none !important;
    position: relative !important;
}

/* Orange quotation mark */
.blockquote2024pp::before {
    content: '\201C' !important;
    color: rgb(255, 47, 2) !important;
    font-size: 80px !important;
    font-family: Halcyon-Medium !important;
    line-height: 104px !important;
    display: block !important;
    position: absolute !important;
    top: -32px !important;
    left: -23px !important;
    padding-left: 10px !important;
}

/* Link styling inside blockquote */
.blockquote2024pp a {
    color: rgb(0, 0, 0) !important;
    text-decoration: none !important;
    font-family: Halcyon-SemiBold !important;
    font-weight: 400 !important;
}

/* Attribution (small element) */
.blockquote2024pp small {
    font-family: Halcyon-Regular !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: rgb(0, 0, 0) !important;
    display: block !important;
    margin-top: 10px !important;
}

/* Add "— " before attribution */
.blockquote2024pp small::before {
    content: '— ' !important;
}

/* ========================================
   Vårt fagpersonell Section
   ======================================== */

/* Fagpersonell section container */
.fagpersoner2024 {
    margin-top: 70px !important;
    margin-bottom: 50px !important;
}

/* Section heading - centered */
.fagpersoner2024 h3 {
    font-family: Halcyon-Medium !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    color: rgb(0, 0, 0) !important;
    text-align: center !important;
    margin: 25px 0 40px !important;
}

/* Card columns - match original Bootstrap 3 gutters */
.fagpersoner2024 .col-md-3 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* ========================================
   Videoer Section
   ======================================== */

/* Full-width gray background row */
.videos2024 {
    background-color: rgb(217, 212, 214) !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 50px 0 60px !important;
}

/* Container inside the row */
.videos2024container {
    max-width: 1170px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* Section heading */
.videos2024container h3 {
    font-family: Halcyon-Medium !important;
    font-size: 30px !important;
    font-weight: 500 !important;
    color: rgb(0, 0, 0) !important;
    text-align: center !important;
    margin: 0 0 27px !important;
}

/* Video columns */
.videos2024container .col-md-6 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Video thumbnail image */
.videos2024container img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Responsive video embed */
.videos2024container .embed-responsive {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.videos2024container .embed-responsive-16by9 {
    padding-bottom: 56.25% !important;
}

.videos2024container .embed-responsive-item,
.videos2024container .embed-responsive iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

/* ========================================
   Få studieveiledning Section
   ======================================== */

/* Full-width banner container */
.leadstudyguidance2024 {
    position: relative !important;
    width: 100vw !important;
    margin-top: 0 !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    overflow: hidden !important;
}

/* Background image */
.leadstudyguidance2024img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Dark overlay */
.leadstudyguidance2024overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Content wrapper */
.leadstudyguidance2024content {
    text-align: center !important;
    padding: 0 20px !important;
}

/* Main heading */
.leadstudyguidance2024content h2 {
    font-family: Halcyon-Medium !important;
    font-size: 50px !important;
    font-weight: 500 !important;
    color: rgb(255, 255, 255) !important;
    margin: 25px 0 10px !important;
}

/* Subtitle */
.leadstudyguidance2024content h3 {
    font-family: Halcyon-Medium !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    color: rgb(255, 255, 255) !important;
    line-height: 26.4px !important;
    margin-bottom: 20px !important;
}

/* CTA Button */
.leadstudyguidance2024button {
    background-color: rgb(255, 255, 255) !important;
    color: rgb(51, 51, 51) !important;
    border-radius: 50px !important;
    font-size: 25px !important;
    font-family: Halcyon-Medium !important;
    padding: 15px 50px !important;
    border: none !important;
    min-width: 400px !important;
}

.leadstudyguidance2024button:hover {
    background-color: rgb(240, 240, 240) !important;
}

/* ========================================
   Relaterte nyheter Section
   ======================================== */

.relatednews2024container {
    margin-top: 40px !important;
    margin-bottom: 0 !important;
}

.relatednews2024 {
    font-family: Halcyon-Medium !important;
    font-size: 30px !important;
    font-weight: 500 !important;
    color: rgb(0, 0, 0) !important;
    margin-top: 20px !important;
    margin-bottom: 22px !important;
    padding-bottom: 0 !important;
    text-align: left !important;
    border-bottom: 1px dotted rgb(228, 233, 240) !important;
}

/* Reduce spacing between Relaterte nyheter heading and news grid */
.news-grid.news-grid-intro {
    margin-top: -15px !important;
}