﻿:root {
 --bs-font-sans-serif: "Quasimoda", sans-serif;
 --bs-body-font-family: var(--bs-font-sans-serif);
 --custom-primary: #1365ab;
 --custom-secondary: #55c168;
 --custom-tertiary: #ec5a29;
 --custom-quaternary: #f197cd;
 --custom-quinary: #f9ebd2;
}

.text-custom-primary,
a.text-custom-primary {
 color: var(--custom-primary);
}

a.text-custom-primary:hover,
a.text-custom-primary:focus {
 color: #004c92;
}

.text-custom-secondary,
a.text-custom-secondary {
 color: var(--custom-secondary);
}

a.text-custom-secondary:hover,
a.text-custom-secondary:focus {
 color: #3ca84f;
}

.text-custom-tertiary,
a.text-custom-tertiary {
 color: var(--custom-tertiary);
}

a.text-custom-tertiary:hover,
a.text-custom-tertiary:focus {
 color: #d34110;
}

.text-custom-quaternary,
a.text-custom-quaternary {
 color: var(--custom-quaternary);
}

a.text-custom-quaternary:hover,
a.text-custom-quaternary:focus {
 color: #d87eb4;
}

.text-custom-quinary,
a.text-custom-quinary {
 color: var(--custom-quinary);
}

a.text-custom-quinary:hover,
a.text-custom-quinary:focus {
 color: #e0d2b9;
}

.bg-custom-primary {
 background-color: var(--custom-primary);
}

.bg-custom-secondary {
 background-color: var(--custom-secondary);
}

.bg-custom-tertiary {
 background-color: var(--custom-tertiary);
}

.bg-custom-quaternary {
 background-color: var(--custom-quaternary);
}

.bg-custom-quinary {
 background-color: var(--custom-quinary);
}

.btn-custom-primary {
 background-color: var(--custom-primary);
 color: #ffffff;
 border-radius: 25px;
}

.btn-custom-primary:hover,
.btn-custom-primary:focus {
 background-color: #004c92;
 color: #ffffff;
}

.btn-custom-secondary {
 background-color: var(--custom-secondary);
 color: #ffffff;
 border-radius: 25px;
}

.btn-custom-secondary:hover,
.btn-custom-secondary:focus {
 background-color: #3ca84f;
 color: #ffffff;
}

.btn-custom-tertiary {
 background-color: var(--custom-tertiary);
 color: #ffffff;
 border-radius: 25px;
}

.btn-custom-tertiary:hover,
.btn-custom-tertiary:focus {
 background-color: #d34110;
 color: #ffffff;
}

.btn-custom-quaternary {
 background-color: var(--custom-quaternary);
 color: #ffffff;
 border-radius: 25px;
}

.btn-custom-quaternary:hover,
.btn-custom-quaternary:focus {
 background-color: #d87eb4;
 color: #ffffff;
}

.btn-custom-quinary {
 background-color: var(--custom-quinary);
 color: var(--custom-tertiary);
 border-radius: 25px;
}

.btn-custom-quinary:hover,
.btn-custom-quinary:focus {
 background-color: #e0d2b9;
 color: var(--custom-tertiary);
}

.fw-bolder {
 font-weight: 800 !important;
}

.fw-boldest {
 font-weight: 900 !important;
}

a {
 color: var(--custom-primary);
}

a:hover,
a:focus {
 color: #004c92;
}

input,
textarea,
select {
 outline: none !important;
 box-shadow: none !important;
 border: 1px solid #ccc !important;
 border-radius: 25px !important;
 padding: 0.45rem 1rem !important;
}

button,
a.btn,
.btn {
 outline: none !important;
 box-shadow: none !important;
}

.navbar {
 min-height: 115px;
 background-color: var(--custom-primary);
 display: flex;
 justify-content: center;
 align-items: center;
 z-index: 3;
}

.navbar .menu-left,
.navbar .menu-right {
 display: flex;
 gap: 1rem;
}

.navbar .menu-left {
 margin-right: auto;
}

.navbar .menu-right {
 margin-left: auto;
}

.navbar .navbar-icon {
 display: flex;
 align-items: center;
}

.navbar .navbar-brand {
 position: relative;
 z-index: 1;
}

.navbar .nav-link {
 color: #ffffff;
 font-weight: 600;
 text-transform: uppercase;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
 color: var(--custom-quinary);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
 color: var(--custom-quinary);
}

.dropdown-item.active,
.dropdown-item:active {
 color: var(--custom-quinary) !important;
 text-decoration: none !important;
 background-color: transparent;
}

button.navbar-toggler {
 color: #ffffff;
 border: 0 !important;
}

button.navbar-toggler:focus {
 box-shadow: none !important;
}

button.navbar-toggler:hover {
 color: var(--custom-quinary) !important;
 box-shadow: none !important;
}

button.navbar-toggler span {
 width: 30px;
 height: 30px;
 padding: 1px 0 0 0;
 margin: 0;
}

button.navbar-toggler span.menu-close {
 display: inline-block;
}

button.navbar-toggler span.menu-open {
 display: none;
}

button.navbar-toggler.open span.menu-close {
 display: none;
}

button.navbar-toggler.open span.menu-open {
 display: inline-block;
}

.navbar-nav .dropdown-menu {
 background-color: var(--custom-primary);
}

.navbar-nav .dropdown-menu .dropdown-item {
 color: #ffffff;
 font-weight: 500;
 text-decoration: none;
}

.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:focus {
 background-color: var(--custom-primary);
 color: var(--custom-quinary);
}

.navbar .navbar-icon a:hover {
 color: var(--custom-quinary) !important;
}

.submenu,
.searchbar {
 position: absolute;
 top: 120px;
 left: 50%;
 transform: translate(-50%, 0);
 width: 100%;
 z-index: 1001;
 background-color: var(--custom-primary);
 border-radius: 0.375rem;
 border: 1px solid rgba(0, 0, 0, 0.175);
}

.submenu ul li a {
 color: #ffffff;
 font-weight: 500;
 text-decoration: none;
}

.submenu ul li a:hover,
.submenu ul li a:focus {
 color: var(--custom-quinary) !important;
}

.navbar-mobile {
 position: absolute;
 top: 120px;
 left: 50%;
 transform: translate(-50%, 0);
 width: 94%;
 max-height: 80vh;
 z-index: 1001;
 border-radius: 0.375rem;
 border: 1px solid rgba(0, 0, 0, 0.175);
 overflow-y: auto;
 -webkit-overflow-scrolling: touch;
}

.navbar-mobile::-webkit-scrollbar {
 width: 6px;
}
.navbar-mobile::-webkit-scrollbar-thumb {
 background: #004c92;
 border-radius: 3px;
}

.navbar-mobile ul li ul {
 list-style-type: none;
}

.navbar-mobile ul li ul li a.nav-link {
 text-transform: inherit;
 font-weight: 400;
}

footer {
 background-color: #eeeeee;
}

footer h6 {
 color: var(--custom-primary);
}

footer a {
 color: #212529;
 text-decoration: underline;
 text-underline-offset: 0.25em;
}

footer a:hover,
footer a:focus {
 color: var(--custom-primary);
}

footer a.icon-link {
 color: #212529;
 text-decoration: none;
}

footer a.icon-link:hover,
footer a.icon-link:focus {
 color: var(--custom-primary);
 text-decoration: none;
}

footer a.icon-link {
 transition: 0.5s;
}

footer a.icon-link:hover {
 transform: scale(1.1);
 transition: 0.5s;
}

header.home {
 margin-top: -115px;
}

header.home .carousel-item {
 height: 800px;
 position: relative;
}

header.home .carousel-item img {
 object-fit: cover;
 height: 100%;
 width: 100%;
}

header.home .carousel-caption {
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 text-align: center;
 z-index: 2;
}

header.home .carousel-overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: linear-gradient(
 to bottom,
 rgba(19, 101, 171, 0.9),
 rgba(19, 101, 171, 0.1)
 );
 z-index: 1;
}

header.home .carousel-caption a.btn {
 transition: 0.5s;
}

header.home .carousel-caption a.btn:hover {
 transform: scale(1.05);
 transition: 0.5s;
}

header.page {
 height: 550px;
 position: relative;
}

header.page img {
 object-fit: cover;
 object-position: center;
 height: 100%;
 width: 100%;
}

header.page .content {
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 text-align: center;
 z-index: 2;
}

header.page .overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(19, 101, 171, 0.55);
 z-index: 1;
}

section.spotlight {
 margin-top: -115px !important;
 height: 100%;
}

section.spotlight .card {
 min-height: 230px;
 z-index: 2;
 border-radius: 25px;
 transition: 0.5s;
}

section.spotlight .card::before {
 content: "";
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-size: cover;
 background-position: center;
 z-index: 1;
 border-radius: 25px;
}

section.spotlight .card::after {
 content: "";
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 z-index: 2;
 border-radius: 25px;
}

section.spotlight .card-body {
 position: relative;
 z-index: 3;
 display: flex;
 justify-content: center;
 align-items: center;
}

section.spotlight .card.main-card::before {
 background-image: url("../images/skol-if-04.jpg");
}

section.spotlight .card.main-card::after {
 background: rgba(249, 235, 210, 0.8);
}

section.spotlight .card.mini-card-1-1::before {
 background-image: url("../images/skol-if-02.jpg");
}

section.spotlight .card.mini-card-1-1::after {
 background: rgba(236, 90, 41, 0.8);
}

section.spotlight .card.mini-card-1-2::before {
 background-image: url("../images/skol-if-07.jpg");
}

section.spotlight .card.mini-card-1-2::after {
 background: rgba(85, 193, 104, 0.8);
}

section.spotlight .card.mini-card-2-1::before {
 background-image: url("../images/skol-if-05.jpg");
}

section.spotlight .card.mini-card-2-1::after {
 background: rgba(85, 193, 104, 0.8);
}

section.spotlight .card.mini-card-2-2::before {
 background-image: url("../images/skol-if-03.jpg");
}

section.spotlight .card.mini-card-2-2::after {
 background: rgba(236, 90, 41, 0.8);
}

section.spotlight .card:hover {
 transform: scale(1.05);
 transition: 0.5s;
}

.nav-tabs .nav-link {
 color: #666666;
 font-weight: 700;
 font-size: 1.2rem;
 border-top-left-radius: 15px;
 border-top-right-radius: 15px;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
 background-color: #eeeeee;
 color: #212529;
 border: 1px solid #eeeeee;
}

.nav-tabs .nav-link.active {
 background-color: var(--custom-primary);
 color: #ffffff;
 border: 1px solid var(--custom-primary);
}

.tab-content .tab-pane {
 background-color: var(--custom-primary);
 color: #ffffff;
 border-bottom-left-radius: 15px;
 border-bottom-right-radius: 15px;
}

.icon-2xs {
 font-size: 0.625em;
}

.icon-xs {
 font-size: 0.75em;
}

.icon-sm {
 font-size: 0.875em;
}

.icon-1x {
 font-size: 1em;
}

.icon-2x {
 font-size: 2em;
}

.icon-3x {
 font-size: 3em;
}

.icon-4x {
 font-size: 4em;
}

.icon-5x {
 font-size: 5em;
}

.icon-6x {
 font-size: 6em;
}

.icon-7x {
 font-size: 7em;
}

.icon-8x {
 font-size: 8em;
}

.icon-9x {
 font-size: 9em;
}

.icon-10x {
 font-size: 10em;
}

.rounded-circle {
 object-fit: cover;
}

.rounded-fancy {
 border-radius: 25px !important;
}

.size-1 {
 width: 0.25rem; /* 4px */
 height: auto;
}

.size-2 {
 width: 0.5rem; /* 8px */
 height: auto;
}

.size-3 {
 width: 0.75rem; /* 12px */
 height: auto;
}

.size-4 {
 width: 1rem; /* 16px */
 height: auto;
}

.size-5 {
 width: 1.25rem; /* 20px */
 height: auto;
}

.size-6 {
 width: 1.5rem; /* 24px */
 height: auto;
}

.size-7 {
 width: 1.75rem; /* 28px */
 height: auto;
}

.size-8 {
 width: 2rem; /* 32px */
 height: auto;
}

.size-9 {
 width: 2.25rem; /* 36px */
 height: auto;
}

.size-10 {
 width: 2.5rem; /* 40px */
 height: auto;
}

.size-11 {
 width: 2.75rem; /* 44px */
 height: auto;
}

.size-12 {
 width: 3rem; /* 48px */
 height: auto;
}

.size-14 {
 width: 3.5rem; /* 56px */
 height: auto;
}

.size-16 {
 width: 4rem; /* 64px */
 height: auto;
}

.size-20 {
 width: 5rem; /* 80px */
 height: auto;
}

.size-24 {
 width: 6rem; /* 96px */
 height: auto;
}

.size-28 {
 width: 7rem; /* 112px */
 height: auto;
}

.size-32 {
 width: 8rem; /* 128px */
 height: auto;
}

.size-36 {
 width: 9rem; /* 144px */
 height: auto;
}

.size-40 {
 width: 10rem; /* 160px */
 height: auto;
}

.size-44 {
 width: 11rem; /* 176px */
 height: auto;
}

.size-48 {
 width: 12rem; /* 192px */
 height: auto;
}

.size-52 {
 width: 13rem; /* 208px */
 height: auto;
}

.size-56 {
 width: 14rem; /* 224px */
 height: auto;
}

.size-60 {
 width: 15rem; /* 240px */
 height: auto;
}

.size-64 {
 width: 16rem; /* 256px */
 height: auto;
}

.size-72 {
 width: 18rem; /* 288px */
 height: auto;
}

.size-80 {
 width: 20rem; /* 320px */
 height: auto;
}

.size-96 {
 width: 24rem; /* 384px */
 height: auto;
}

.size-125 {
 width: 30rem; /* 480px */
 height: auto;
}

.size-150 {
 width: 40rem; /* 640px */
 height: auto;
}

.swiper-slide img {
 max-width: 100%;
 height: auto;
 display: block;
 margin: 0 auto;
}

/* Partner carousel - fix mobile overflow */
.swiper-partners .swiper-slide {
 display: flex;
 justify-content: center;
 align-items: center;
 box-sizing: border-box;
}

/* Partner logos styling for consistent size */
.swiper-slide img.partner-logo {
 height: 60px;
 max-width: 100%;
 width: auto;
 object-fit: contain;
 transition: all 0.3s ease;
}

/* SVG logos need explicit dimensions */
.swiper-slide img.partner-logo[src$=".svg"] {
 height: 60px;
 width: auto;
}

@media (min-width: 576px) {
 .swiper-slide img.partner-logo {
 height: 67px;
 max-width: 200px;
 }
 .swiper-slide img.partner-logo[src$=".svg"] {
 height: 67px;
 }
}

@media (min-width: 768px) {
 .swiper-slide img.partner-logo {
 max-width: 250px;
 }
}

.swiper-slide img:hover {
 transform: scale(1.05);
}

.smart-word-break {
 overflow-wrap: break-word;
 word-wrap: break-word;
 -ms-word-break: break-all;
 word-break: break-word;
 -ms-hyphens: auto;
 -moz-hyphens: auto;
 -webkit-hyphens: auto;
 hyphens: auto;
}

.expandable-container {
 overflow: hidden;
 max-height: 185px;
 padding-top: 10px;
 transition: max-height 0.5s ease-in-out;
}

.expandable-container.expand {
 background: linear-gradient(
 to bottom,
 rgba(255, 255, 255, 0) 65%,
 rgba(255, 255, 255, 1) 95%
 );
 mask-image: linear-gradient(
 to bottom,
 rgba(0, 0, 0, 1) 65%,
 rgba(0, 0, 0, 0) 95%
 );
 -webkit-mask-image: linear-gradient(
 to bottom,
 rgba(0, 0, 0, 1) 65%,
 rgba(0, 0, 0, 0) 95%
 );
}

#youtubeModal .modal-content {
 position: relative;
}

#youtubeModal button.btn-close {
 position: absolute;
 top: 22px;
 right: 22px;
 z-index: 2;
}

.accordion-button {
 background-color: var(--custom-primary);
 color: #ffffff;
}

.accordion-button:not(.collapsed) {
 color: #ffffff;
 background-color: var(--custom-primary);
}

.accordion-button h3 {
 color: #ffffff;
}

.accordion-button::after,
.accordion-button:not(.collapsed)::after {
 background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
 background-color: #fff;
}

.accordion-item,
.accordion-button {
 border-radius: 25px !important;
}

.posts .card .card-img-top {
 width: 100%;
 height: 250px;
 object-fit: cover;
 border-top-left-radius: 25px;
 border-top-right-radius: 25px;
}

.post {
 font-size: 1.25rem;
 font-weight: 400;
 max-width: 75ch;
 margin-left: auto;
 margin-right: auto;
 overflow-wrap: break-word;
}

.post h2,
h3,
h4,
h5,
h6 {
 font-weight: 700;
 color: var(--custom-primary);
}

.post img {
 max-width: 100%;
 height: auto;
 display: block;
 margin: 2rem auto; /* Ger luft ovan och under samt centrerar bilden */
 border-radius: 12px; /* Valfritt: rundade hÃ¶rn fÃ¶r snyggare look */
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Valfritt: lÃ¤tt skugga */
}

.post .img-row {
 display: flex;
 gap: 16px;
 justify-content: center;
 align-items: flex-start;
 margin-bottom: 2rem;
}

.post .img-row img {
 display: inline-block;
 max-width: 100%;
 height: auto;
 margin: 0;
}

img.img-inline {
 display: inline-block !important;
 vertical-align: top;
 margin-right: 16px;
 margin-bottom: 0;
}

img.img-block {
 display: block;
 margin: 2rem auto;
}

/* Instagram Section - Modern Design */
.instagram-section {
 background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
 padding: 3rem 0;
}

.instagram-header {
 margin-bottom: 1rem;
}

.instagram-link {
 display: inline-flex;
 align-items: center;
 gap: 0.5rem;
 font-size: 1.5rem;
 font-weight: 700;
 color: #262626;
 text-decoration: none;
 transition: all 0.3s ease;
}

.instagram-link i {
 font-size: 2rem;
 background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;
}

.instagram-link:hover {
 color: #bc1888;
 transform: translateY(-2px);
}

.instagram-grid {
 max-width: 1400px;
 margin: 0 auto;
}

.instagram-item {
 aspect-ratio: 4 / 5;
 width: 100%;
 overflow: hidden;
 position: relative;
 background: #eee;
 border-radius: 4px;
}

.instagram-item img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
 transition: transform 0.4s ease, filter 0.4s ease;
}

.instagram-item .instagram-overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0, 0, 0, 0.4);
 display: flex;
 align-items: center;
 justify-content: center;
 opacity: 0;
 transition: opacity 0.3s ease;
}

.instagram-item .instagram-overlay i {
 font-size: 2.5rem;
 color: #fff;
 transform: scale(0.8);
 transition: transform 0.3s ease;
}

.instagram-item:hover img {
 transform: scale(1.1);
}

.instagram-item:hover .instagram-overlay {
 opacity: 1;
}

.instagram-item:hover .instagram-overlay i {
 transform: scale(1);
}

@media (max-width: 767.98px) {
 .instagram-link {
 font-size: 1.2rem;
 }
 
 .instagram-link i {
 font-size: 1.6rem;
 }
 
 .instagram-item .instagram-overlay i {
 font-size: 1.5rem;
 }
}

/* Legacy instagram styles (kept for compatibility) */
.instagram .instagram-container {
 aspect-ratio: 4 / 5;
 width: 100%;
 overflow: hidden;
 position: relative;
 background: #eee;
}

.instagram .instagram-container img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 aspect-ratio: 4 / 5;
 display: block;
}

.mapouter {
 position: relative;
 text-align: right;
 width: 100%;
 height: 350px;
}

.gmap_canvas {
 overflow: hidden;
 background: none !important;
 width: 100%;
 height: 350px;
}

.gmap_iframe {
 height: 350px !important;
}

.grecaptcha-badge {
 visibility: hidden !important;
}

/* Media Queries */

/* Max-width */
@media (max-width: 575.98px) {
}

@media (max-width: 767.98px) {
 header.home .carousel-caption {
 width: 70%;
 }
 .post img.img-inline {
 display: block !important;
 margin-right: 0;
 margin-bottom: 2rem;
 max-width: 90%;
 width: 90%;
 margin-left: auto;
 margin-right: auto;
 }
 .post .img-row {
 flex-direction: column;
 gap: 0;
 align-items: center;
 }
}

@media (max-width: 991.98px) {
}

@media (max-width: 1199.98px) {
 section.spotlight .card.main-card {
 height: 400px;
 }
}

@media (max-width: 1399.98px) {
}

/* Min-width */
@media (min-width: 576px) {
 .submenu {
 width: 540px;
 }
 .navbar-mobile {
 width: 540px;
 }
}

@media (min-width: 768px) {
 header.home .carousel-caption {
 width: 50%;
 }
 .submenu,
 .searchbar {
 width: 720px;
 }
 .navbar-mobile {
 width: 720px;
 }
}

@media (min-width: 992px) {
 .navbar-nav .dropdown:hover .dropdown-menu {
 display: block !important;
 }
 .submenu,
 .searchbar {
 width: 960px;
 }

 .navbar-mobile {
 width: 960px;
 }
}

@media (min-width: 1200px) {
 .submenu,
 .searchbar {
 width: 1140px;
 }
}

@media (min-width: 1400px) {
 .submenu,
 .searchbar {
 width: 1320px;
 }
}

.caption {
 font-size: 10px;
 color: #888;
 text-align: center;
 font-style: italic;
 margin-top: 0.5em;
}

/* Breadcrumb */
.breadcrumb-nav {
 background-color: #f8f9fa;
 border-bottom: 1px solid #e9ecef;
 padding: 0.75rem 0;
}

.breadcrumb {
 background-color: transparent;
 padding: 0;
 margin: 0;
 font-size: 0.875rem;
}

.breadcrumb-item {
 color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
 content: "/";
 color: #adb5bd;
 padding: 0 0.5rem;
}

.breadcrumb-item a {
 color: #495057;
 transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
 color: var(--bs-primary);
}

.breadcrumb-item.active {
 color: #212529;
 font-weight: 500;
}

/* News thumbnail placeholders */
.card-img-wrapper {
 position: relative;
 overflow: hidden;
}

.placeholder-image {
 filter: grayscale(100%) opacity(0.3);
 object-fit: cover;
}

.placeholder-overlay {
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 font-size: 3rem;
 color: #6c757d;
 pointer-events: none;
}

.card-img-wrapper .placeholder-overlay i {
 filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
