/*
Theme Name: Template
Author: Template
Version: 1
Description: Required plugins: Yoast SEO, ACF
*/

* {
    box-sizing: border-box;
}
@font-face {
    font-family: 'Roboto Flex';
    font-style: normal;
    font-weight: 100 1000;
    font-stretch: 100%;
    font-display: swap;
    src: url(fonts/RobotoFlex1.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root  {
    --body-bg: #F2F4FB;
    --footer-bg: #1D44CD;
    --text-color: #08080A;
    --header-color: #1B2355;
    --light-bg: #F2F4FB;
    --stars: #FFB800;
}
html{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}
body {
    font-family: 'Roboto Flex', 'Arial';
    font-size: 18px;
    margin: 0;
    padding: 0;
    background: var(--light-bg);
}
.container {
    width: 100%;
    max-width: 1240px;
    padding: 15px;
    margin: auto;
    position: relative;
}
.header .container {
    display: flex;
    align-items: center;
    column-gap: 100px;
}
.header-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    column-gap: 30px;
    row-gap: 20px;
    padding: 0;
}
.header-menu a {
    color: var(--text-color);
    text-decoration: none;
}
.menu-buton {
    display: none;
    position: relative;
    width: 48px;
    height: 31px;
}
.menu-buton > div {
    width: 48px;
    height: 5px;
    background: var(--text-color);
    border-radius: 3px;
}
.sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 160px;
}
.sub-menu li {
    padding: 0;
}
.sub-menu li a {
    padding: 15px 10px;
    display: block;
    background: var(--light-bg);
}
.top-section {
    background: linear-gradient(90deg, #1D44CD 0%, #1C006B 100%);
    color: white;
}
.top-section .container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 10px;
    min-height: 300px;
    background-position: right center;
}
.top-section-img {
    width: 100%;
    height: auto;
    background-image: url(img/pic.png);
    background-size: contain;
    background-repeat: no-repeat;
}
.toc-btn {
    padding: 6px 24px 6px 24px;
    border: 3px solid white;
    border-radius: 6px;
    width: max-content;
    font-weight: bold;
    cursor:  pointer;
    margin-top: 10px;
	user-select: none;
}
.toc-btn::after {
    content: '';
    width: 3px;
    height: 3px;
    display: inline-block;
    rotate: 45deg;
    margin-left: 10px;
    margin-bottom: 3px;
    border: solid white;
    border-width: 0 3px 3px 0;
    padding: 3px;
}
.toc-btn-open::after {
    rotate: 225deg;
    margin-bottom: -2px;
}
.toc {
    display: none;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 16px;
    font-size: 16px;
}
.toc-open {
    display: grid;
}
.toc a {
    text-decoration: underline;
    color: white;
	user-select: none;
}
.tocH3 {
    margin-left: 20px;
}
main {
    min-height: 50vh;
}
.footer {
    background: var(--footer-bg);
}
.footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    column-gap: 30px;
    row-gap: 20px;
    padding: 0;
}
.footer-menu a {
    color: #ffffff;
    text-decoration: none;
}
.footer-menu a:hover {
    text-decoration: underline;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
article {
    margin-bottom: 50px;
}
article a {
    color: var(--text-color);
}
article h1, .h1 {
    font-size: 2em;
    font-weight: 700;
    color: white;
    margin-top: 30px;
    margin-bottom: 0;
}
article h2, .h2 {
    color: var(--header-color);
    font-weight: 900;
    font-size: 1.5em;
}
article h3, .h3 {
    color: var(--header-color);
}
article h4, .h4 {
    color: var(--header-color);
}
article ul li, article ol li {
    color: #1B2355;
    font-weight: 500;
}
.breadcrumbs {
    margin-top: 30px;
    font-size: 15px;
}
.breadcrumbs a {
    color: var(--text-color);
}
.breadcrumbs a:hover {
    background: var(--a-bg-hover);
}
.button {
    display: inline-block;
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    background: #1D44CD;
}
.button:hover {
    background: var(--header-color);
}
blockquote {
    color: #1D44CD;
    font-style: italic;
    font-weight: 600;
    text-align: center;
}
.wp-block-table {
    overflow-x: auto;
}
.wp-block-table table {
    border-collapse: separate;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background: white;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(even) td {
    box-shadow: 0px 3px 15px 0px #9395CC26;
}
.wp-block-table td {
    padding: 18px 20px;
    border-radius: 6px;
    border: 1px solid transparent;
    border: none;
}
.wp-block-table th {
    padding: 18px 20px;
    background: #1D44CD;
    border-radius: 6px;
    color: white;
    border: none;
}
.wp-block-table thead {
    border-bottom: none;
}
.schema-faq-question {
    cursor: pointer;
    background: white;
    padding: 16px 20px 16px 20px;
    color: #1D44CD;
    font-weight: 700;
    border-radius: 6px;
	user-select: none;
}
.schema-faq-question::before {
	content: '';
    width: 3px;
    height: 3px;
    display: inline-block;
    rotate: 45deg;
    margin-right: 14px;
    margin-bottom: 4px;
    border: solid #1D44CD;
    border-width: 0 3px 3px 0;
    padding: 3px;
}
.open .schema-faq-question::before {
    rotate: 225deg;
    margin-bottom: -1px;
}
.schema-faq-answer {
    display: none;
}
.open .schema-faq-answer {
    display: block;
}
.showcase {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}
.showcaseitem {
    background: white;
    border-radius: 6px;
    padding: 24px;
    display: grid;
    gap: 24px;
    grid-template-columns: 230px 1fr 1fr 220px;
    align-items: center;
}
.showcaseitem__logo {
    width: 230px;
    height: 160px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
}
.showcaseitem__logo:hover {
    opacity: 0.8;
}
.showcaseitem__title {
    color: var(--header-color);
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1;
}
.showcaseitem__rating {
    margin-top: 10px;
}
.showcaseitem__adv {
    display: grid;
    gap: 10px;
}
.showcaseitem__adv p {
    margin: 0;
    color: var(--header-color);
    position: relative;
    padding-left: 36px;
}
.showcaseitem__adv p::before {
    position: absolute;
    top: -2px;
    left: 0;
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid #4DDAB9;
    border-radius: 6px;
    box-sizing: border-box;
}
.showcaseitem__adv p::after {
    position: absolute;
    top: 2px;
    left: 8px;
    content: '';
    display: block;
    width: 6px;
    height: 11px;
    border-bottom: 2px solid #4DDAB9;
    border-right: 2px solid #4DDAB9;
    rotate: 45deg;
}
.showcaseitem__btn a {
    width: 100%;
    text-align: center;
}
.authorblock {
    width: auto;
    max-width: 1000px;
    background: white;
    margin: 40px auto;
    padding: 24px;
    border-radius: 6px;
    display: grid;
    grid-template-columns: 150px auto;
    gap: 50px;
    box-shadow: 0 3px 15px 0 #9395CC26;
}
.authorblock__photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-size: cover;
    border: 6px solid #1D44CD;
}
.authorblock__title {
    color: var(--header-color);
    font-weight: 800;
}
.wp-block-columns {
    gap: 1em;
}
.prosandcons__item {
    border-radius: 6px;
    background: white;
    position: relative;
}
.prosandcons__item::before {
    display: block;
    height: 66px;
    background: #1D44CD;
    color: white;
    font-size: 1.3em;
    font-weight: 700;
    line-height: 66px;
    border-radius: 6px 6px 0 0;
    padding-left: 96px;
    background-repeat: no-repeat;
}
.prosandcons__item:nth-of-type(1)::before {
    background-image: url(img/like.png);
    content: 'Fördelar';
    background-position: 30px center;
}
.prosandcons__item:nth-of-type(2)::before {
    background-image: url(img/dislike.png);
    content: 'Nackdelar';
    background-position: 30px 13px;
}
.prosandcons__item li {
    color: var(--text-color);
    line-height: 28px;
}
.cards4 > div {
    background: white;
    border-radius: 6px;
}
.cards4 p,
.cards4 h3 {
    padding: 0 20px;
}
.cards4 p strong {
    color: var(--header-color);
}
.cards4 .wp-block-image img {
    border-radius: 6px 6px 0 0;
}
.cards6 {
    margin-bottom: 1em;
}
.cards6 > div {
    background: white;
    border-radius: 6px;
    padding: 20px;
}
.cards6 p strong {
    color: var(--header-color);
}
.cards6 a {
    color: #1D44CD;
    font-size: 14px;
}
.cards6 figure {
    border-right: 2px solid #D7DFED;
    padding-right: 10px;
}
.cards6 p {
    margin: 10px 0;
}
.blankstar path {
    opacity: 0.2;
}
@media (min-width: 1201px) {
    .header-menu a:hover {
        text-decoration: underline;
    }
    .menu-item-has-children {
        position: relative;
    }
    .menu-item-has-children:hover .sub-menu {
        position: absolute;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding-top: 15px;
        z-index: 10;
        right: 0;
    }
}
@media (max-width: 1200px) {
    .header .container {
        justify-content: space-between;
        gap: 0;
    }
    .menu-buton {
        display: block;
    }
    .menu-buton > div{
        width: 42px;
    }
    .menu-buton div:nth-of-type(1),
    .menu-buton div:nth-of-type(2) {
        margin-bottom: 8px;
    }
    .open .menu-buton {
        top: 10px;
        z-index: 20;
    }
    .open .menu-buton div:nth-of-type(1) {
        position: absolute;
        transform: rotate(45deg);
    }
    .open .menu-buton div:nth-of-type(2) {
        position: absolute;
        transform: rotate(-45deg);
    }
    .open .menu-buton div:nth-of-type(3) {
        display: none;
    }
    .header-menu {
        display: none;
        position: absolute;
        padding: 70px 20px 5px 20px;
        margin: 0;
        top: 0;
        right: 0;
        z-index: 10;
        background: var(--light-bg);
    }
    .header-menu {
        flex-direction: column;
        gap: 0;
    }
    .header-menu li {
        padding: 0;
    }
    .header-menu li a {
        padding: 15px 0;
        display: block;
        font-weight: 600;
    }
    .open .header-menu {
        width: 400px;
        display: block;
    }
    .sub-menu {
        display: flex;
        flex-direction: column;
        padding-left: 20px;
    }
    .top-section .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .showcaseitem {
        align-items: start;
        grid-template-columns: 230px 1fr;
        grid-template-areas: "logo info"
                             "logo  adv"
                             "btn  adv";
    }
    .showcaseitem__logo {
        grid-area: logo;
    }
    .showcaseitem__info {
        grid-area: info;
    }
    .showcaseitem__adv {
        grid-area: adv;
    }
    .showcaseitem__btn {
        grid-area: btn;
    }
    .cards4 .wp-block-image img {
        width: 100%;
    }
    .cards6 img {
        width: 80px;
        height: 80px;
    }
    .cards6 p {
        font-size: 16px;
    }
}
@media (max-width: 600px) {
    body {
        font-size: 16px;
    }
    .open .header-menu {
        width: 100%;
    }
    .footer-menu {
        flex-direction: column;
    }
    .breadcrumbs {
        margin-top: 0;
    }
    article {
        margin-bottom: 30px;
    }
    article h2::before, .h2::before {
        margin-right: 8px;
    }
    .top-section .container {
        display: flex;
        flex-direction: column;
    }
    .top-section-img {
        height: 300px;
        width: 100%;
    }
    .footer .container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .showcaseitem {
        gap: 16px;
        justify-items: center;
        grid-template-columns: 1fr;
        grid-template-areas: "logo" "btn" "info" "adv";
    }
    .showcaseitem__btn {
        width: 230px;
    }
    .showcaseitem__title, .showcaseitem__rating {
        text-align: center;
    }
    .authorblock {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}



/* block1 */

.block10 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.block10__item {
    width: calc(33% - 20px);
    padding: 20px;
    box-shadow: 0 1px 4px 0 #292C2C1F;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.block10__img {
    width: 140px;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.block10__header {
    margin: 0;
}

.block10__text {
    font-size: 16px;
    text-align: center;
}

@media (max-width: 768px) {
    .block10 {
        gap: 12px;
    }
    .block10__item {
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .block10 {
        flex-direction: column;
    }
    .block10__item {
        padding: 16px;
        width: 100%;
        display: grid;
        grid-template-areas: 
                    "block10img block10header"
                    "block10img block10text";
    }
    .block10__img {
        width: 110px;
        height: 110px;
        grid-area: block10img;
    }
    .block10__header {
        grid-area: block10header;
    }
    .block10__text {
        grid-area: block10text;
        text-align: left;
        font-size: 14px;
    }
}



.list1 {
    list-style: none;
    padding: 0;
}
.list1 li {
	border: 2px solid var(--header-color);
	border-radius: 10px;
	padding: 20px 16px 20px 48px;
	background: white;
	position: relative;
}
.list1 li:not(:last-child) {margin-bottom: 16px;}
.list1 li::before {
	top: 23px;
	left: 16px;
}
.list1 li strong {
    color: var(--dark-grey);
}
.list1 li::before {
    position: absolute;
    top: 18px;
    left: 12px;
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--header-color);
    border-radius: 6px;
    box-sizing: border-box;
}
.list1 li::after {
    position: absolute;
    top: 22px;
    left: 20px;
    content: '';
    display: block;
    width: 6px;
    height: 11px;
    border-bottom: 2px solid var(--header-color);
    border-right: 2px solid var(--header-color);
    rotate: 45deg;
}

/* block2 */

.block2 {
	padding: 20px;
	border-left: 10px solid var(--header-color);
	border-radius: 10px;
	box-shadow: 0 1px 4px 0 #292C2C1F;
	margin-bottom: 20px;
    background: white;
}

.block2 h3 {
	display: inline-block;
	margin-top: 0;
	margin-bottom: 20px;
	padding: 6px 20px;
	border-radius: 9px;
	background: var(--header-color);
	color: white;
}

.block2 p {
    font-size: 16px;
    margin-bottom: 10px;
}

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

@media (max-width: 781px) {
    .block2 {
        padding: 16px;
    }
    .block2 p {
        font-size: 14px;
    }    
    .block2 h3 {
        font-size: 20px;
    }    
}


/* block3 */

.block3 {
	margin-bottom: 20px;
    box-shadow: 0 1px 4px 0 #292C2C1F;
    padding: 20px;
    border-radius: 10px;
    background: white;
}
.block3-columns {
    gap: 1em;
    margin-bottom: 0;
}
.block3 img, .wp-block-image {
    margin-bottom: 0;
}
.block3 h3 {
	margin-top: 0;
	margin-bottom: 20px;
}
.block3-text {
	background: var(--light-bg);
	border: 2px solid var(--second-color);
	border-radius: 10px;
	padding: 20px 14px;
}
.block3-text p {
	font-size: 16px;
	margin-bottom: 10px;
}
.block3-text p:first-child {
	margin-top: 0;
}
.block3-text p:last-child {
	margin-bottom: 0;
}
.block3-proscons {
    margin-top: 20px;
    margin-bottom: 0;
    gap: 1em;
}

.block3-proscons p:first-child {
	margin-top: 0;
}

.block3-proscons ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    list-style: none;
    padding: 0;
}

.block3-pros {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 20px;
}

.block3-proscons li {
    padding-left: 36px;
    font-size: 16px;
    position: relative;
}

.block3-pros ul li::before {
    content: '';
    display: block;
    position: absolute;
    width: 24px;
    height: 24px;
    background-image: url(img/like.png);
    background-size: cover;
    top: -4px;
    left: 0;
}

.block3-cons {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 20px;
}

.block3-cons ul li::before {
    content: '';
    display: block;
    position: absolute;
    width: 24px;
    height: 21px;
    background-image: url(img/dislike.png);
    background-size: cover;
    top: 2px;
    left: 0;
}

@media (max-width: 781px) {
    .block3-text p {
    	font-size: 14px;
    	margin-bottom: 10px;
    }
    .block3-proscons ul {
        gap: 10px;
    }
    .block3-pros, .block3-cons {
        padding: 10px;
    }
    .block3-proscons li {
        padding-left: 36px;
        font-size: 14px;
    }
}

/* Block3-1 */

.block3-1 {
    border-left: 10px solid var(--header-color);
}

.block3-2 {
    background: url(img/bock3-2-left.svg), url(img/bock3-2-right.svg), var(--header-color);
    background-repeat: no-repeat;
    background-position: left bottom, right top, center;
    box-shadow: none;
}

.block3-2 h3 {
    color: #ffffff;
}

.block3-1 .block3-columns, .block3-2 .block3-columns {
    align-items: center !important;
}

.block3-1 h3 {
    display: inline-block;
    background: var(--header-color);
    color: white;
    border-radius: 6px;
    line-height: 1;
    padding: 6px 20px;
    margin: 0;
}

.block3-2 h3 {
    margin: 0;
}

.block5-1 ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: white;
}

.block5-1 li {
    margin: 0 !important;
}

@media (max-width: 600px) {
    .block3-2 {
        text-align: center;
    }
    .block5-1 ul {
        grid-template-columns: 1fr;
    }
}


/* block5 */

.block5 {
    box-shadow: 0 1px 4px 0 #292C2C1F;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    background: white;
}

.block5 ul:last-child {
    margin-bottom: 0;
}



/* block6 */

.block6 {
	margin-bottom: 20px;
	box-shadow: 0 1px 4px 0 #292C2C1F;
	padding: 15px 15px 15px 24px;
	border-radius: 10px;
	height: 181px;
	filter: grayscale(1);
    background: white;  
}
.block6__content {
	position: relative;
	padding: 15px;
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
	border-top: 2px solid #fce9d2;
	border-right: 2px solid #fce9d2;
	border-bottom: 2px solid #fce9d2;
	background-color: #fffbf9;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.block6__content h3, ul {
	margin: 0;
}
.block6__content::before {
	content: url(img/block6-bg.png);
	position: absolute;
	left: -54px;
	top: -2px;
}
.block6__content p {
	font-size: 16px;
	margin: 0;
}
.block6__num {
	display: flex;
	align-items: center; 
}
.block6__num p {
	margin: 0;
	font-size: 60px;
	font-weight: 800;
	text-align: center;
	color: #fce9d2;
}

@media (max-width: 781px) {
	.block6 {
		height: auto;
		padding: 0 16px 16px 16px;
		gap: 0;
	}
	.block6__content::before {
		content: none;
	}
	.block6__content {
		border: 2px solid #fce9d2;
		border-radius: 10px;
		margin-top: -10px !important;
	}
	.block6__num {
		margin-top: -10px !important;
	}
}

/* block7 */

.block7 {
	margin-bottom: 20px;
	gap: 30px;
}
.block7 img {
	margin: 0;
}
.block7 h3 {
	margin: 0;
}
.block7 p {
	font-size: 16px;
	margin: 10px 0 0 0;
}
.block7 figure {
	text-align: center;
}

.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: block;
    border: solid var(--header-color);
    border-width: 0 3px 3px 0;
    padding: 10px;
    transform: rotate(225deg);
}
