/*
Theme Name: Netvis Theme
Theme URI: https://netvis.is
Description: This is a child theme for Flatsome Theme
Author: Reykjavik Digital
Author URI: https://reykjavikdigital.is
Template: flatsome
Version: 3.4.0
Text Domain: netvis
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* @license
 * MyFonts Webfont Build ID 3867246, 2020-12-18T11:57:24-0500
 * License: https://www.myfonts.com/viewlicense?type=web&buildid=3867246
 */

 :root {
    --primary-color: #331F61;
    --red-light: #FF5E66;
    --red-dark: #CA0008;
    --tertiary-color: #80D9DF; /* #6ed6e8; */ 
    --quaternary-color: #2D1856;
    --quinary-color: #FFFFFF;

    --violet-light: #483A89;
    --violet-dark: #331F61;

    --gray: rgba(51, 31, 97, 0.1);
}


/* 
 * =========================================================================
 * FONTS
 * =========================================================================
*/

@font-face {
    font-family: 'Swis721 BT';
    src: url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Black.woff2') format('woff2'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Black.woff') format('woff'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Black.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Swis721 BT';
    src: url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-BlackItalic.woff2') format('woff2'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-BlackItalic.woff') format('woff'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-BlackItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Swis721 BlkRnd BT';
    src: url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-BlackRounded.woff2') format('woff2'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-BlackRounded.woff') format('woff'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-BlackRounded.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Swis721 BT';
    src: url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Bold.woff2') format('woff2'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Bold.woff') format('woff'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Swis721 BT';
    src: url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-BoldItalic.woff2') format('woff2'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-BoldItalic.woff') format('woff'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-BoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Swis721 BT';
    src: url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Roman.woff2') format('woff2'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Roman.woff') format('woff'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Roman.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Swis721 BT';
    src: url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Heavy.woff2') format('woff2'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Heavy.woff') format('woff'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Heavy.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Swis721 BT';
    src: url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Italic.woff2') format('woff2'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Italic.woff') format('woff'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Swis721 BT';
    src: url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Light.woff2') format('woff2'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Light.woff') format('woff'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Swis721 BT';
    src: url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-LightItalic.woff2') format('woff2'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-LightItalic.woff') format('woff'),
        url('/wp-content/themes/netvis/assets/fonts/Swiss721BT-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}


p, h1, h2, h3, h4, h5, h6, a, ul li, ol li {
    font-family: 'Swis721 BT', sans-serif;
}

h1 {
    line-height: 47px;
    font-size: 24px;
    font-weight: 700;
    padding-bottom: 15px !important;
}

h2, h3 {
    font-size: 40px;
    line-height: 49px;
    font-weight: 700;
    color: #331F61;
}

h4 {
    font-size: 48px;
    line-height: 61px;
    font-weight: 700;
    color: #FF5E66 !important;
}

p {
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
}

p.lead {
    font-size: 20px;
    line-height: 30px;
    font-weight: 700;
    color: #2D1856;
}

p.lead-400 {
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
}

p.lead-thin {
    font-size: 20px;
    line-height: 30px;
}

p.intro-lead {
    font-weight: 300;
    line-height: 32px;
    font-size: 18px;
    color: #2D1856;
}

p.front-page-lead {
    font-size: 32px;
    line-height: 45px;
    color: #FFFFFF;
}

p.front-page-bold-lead {
    font-size: 19px;
    line-height: 24px;
    font-weight: 700;
    color: #FFFFFF;
}

p.front-page-content {
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
}

label {
    font-size: 16px;
    line-height: 36px;
    font-weight: 300;
    color: #2D1856;
}

.text-green {
    color: #80D9DF !important;
}

.text-white {
    color: #FFFFFF !important;
}

.text-red {
    color: #FF5E66 !important;
}

.text-violet {
    color: #2D1856;
}

p.text-turquoise {
    color: #80D9DF !important;
}

.footer-font {
    font-weight: 400;
    font-size: 14px;
    line-height: 31px;
    color: #FFFFFF;
}
.footer-font a {   
    width: max-content;
    display: flex;
}

footer p {
    min-width: 128px;
}

footer .stack img {
    margin-right: 25px;
}
@media (max-width: 767px) {
    
    footer p {
        min-width: auto;
    }

    footer .stack img {
        margin-right: 0px;
    }
}

.foreldrar-text-bottom {
    p.lead {
        margin-bottom: 0;
    }
}

.contact-form-info {
    color: #80D9DF;
    font-size: 20px;
    line-height: 30px;
    font-weight: 800;
    margin-bottom: 20px !important;
}

.rounded-font {
    font-size: 20px;
    line-height: 30px;
    font-weight: 800;
}

.netvis-staff {
    h1 {
        margin-bottom: 0;
        line-height: normal;
    }
}

.frontpage-info-header {
    font-size: 35px !important;
    line-height: 49px !important;
    font-weight: 700 !important;
}

.nav-sidebar {
    li {
        a {
            font-size: 16px;
            line-height: 40px;
            color: #331F61;
            font-weight: 700;
            justify-content: end;
        }
    }
}

.text-500,
a.text-500 {
    font-weight: 500 !important;
}

text-600,
a.text-600 {
    font-weight: 600 !important;
}

.link-white-500 a span,
.link-white-500 a {
    font-weight: 500;
    color: #FFFFFF;
}

.subheading {
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
}
@media screen and (max-width: 768px) {
    h2, h3 {
        font-size: 36px;
        line-height: 45px;
    }
	h2.rannsoknarskyrslur {
		font-size: 30px;
	}
}
/* 
 * =========================================================================
 * GLOBAL
 * =========================================================================
*/
.max-w-1250 {
    max-width: 1250px;
    margin: 0 auto;
}

.max-w-850 {
    max-width: 850px !important;
    margin: 0 auto;
}

.max-w-800 {
    max-width: 800px !important;
    margin: 0 auto;
}

.px-15 {
    padding-left: 15px;
    padding-right: 15px;
}

.img-cut-edge {
    /* .attachment-original { */
        clip-path: polygon(
            0 0,         /* top left */
            100% 0,      /* top right */
            100% calc(100% - 80px), /* just above bottom right */
            calc(100% - 80px) 100%, /* 45-degree notch inwards */
            0 100%       /* bottom left */
        );
    /* } */

    &.foreldrar-first-img {
        max-width: 631px;
        margin-top: 70px;
    }
}

.netvis-staff-img {
    display: block;
    max-width: 232px;
    width: auto;
}

.netvis-pink-btn {
    display: block;
    height: 45px;
    width: fit-content;
    background-color: #FF5E66;
    font-size: 16px;
    line-height: 40px;
    padding-left: 15px;
    color: #2D1856;
    padding-right: 50px;
    margin-top: 50px;
    font-weight: normal;
}

/* CTA-s with arrow */
.link-wrapper.big-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: end;
  line-break: normal;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
}

.link-wrapper.big-arrow:after {
  content: url('/wp-content/uploads/arrow-right-turquise-big.svg');
  display: inline-block;
  position: static;
  margin-left: 30px;
  vertical-align: middle;
}

.link-wrapper.big-arrow:hover {
  transform: translateY(-10px);
}

/* Front page links with arrow */
.section-big-arrow-cta-white .frontpage-button-section > .col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-big-arrow-cta-white .link-wrapper.big-arrow {
    justify-content: end;
}

.section-big-arrow-cta-white .link-wrapper.big-arrow:after {
    position: static;
    right: unset;
    top: unset;
    margin-left: -10px;
}
.section-big-arrow-cta-white .link-wrapper.big-arrow .link-text {
    text-align: right !important;
    padding-left: 20px;
}

.section-big-arrow-cta-white .link-wrapper.big-arrow .larger-heading {
    color: #2D1856;
    font-size: 24px;
    line-height: 32px;
}

.link-arrow img {
  display: block;
  min-width: 66px;
  min-height: 66px;
}

/* 
 * =========================================================================
 * FRONTPAGE
 * =========================================================================
*/
body.home {

    h1 {
        font-size: 48px;
        line-height: 61px;
        word-break: break-word;
    }

    .icon-menu:before {
        color: #ffffff !important;
    }
    .header-wrapper.stuck .icon-menu:before {
        color: #000000 !important;
    }

    #main {
        background-color: #331F61;
    }

    .s--fp {
        color: #ffffff;
    }

    .frontpage-barnaheill-logo {
        padding-bottom: 7px;
    }

    .link-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: -10px !important;
        text-align: center;
        transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    }
    .link-wrapper:hover {
        transform: translateY(-10px);
    }

    .s--clipped-banner .text-box >.text-box-content {
        margin-bottom: -70px !important;
    }

    .s--clipped-banner__mobile {
        padding-top: 60px !important;
        padding-bottom: 50px !important;
    }

    .s--clipped-banner {
        background: transparent;
    }
    
    .s--clipped-banner .banner {
        margin-top: -400px;
        margin-bottom: -400px;
        background: transparent;
    }
    .s--clipped-banner .banner.is-full-height {
        height: calc(100vh + 200px) !important;
    }
}

.link-wrapper .larger-heading {
    font-size: 32px;
    line-height: 45px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.link-wrapper .smaller-heading {
    font-size: 20px;
    line-height: 28px;
}

.fp-s3 > .section-content > .row {
    max-width: 1000px;
}
@media (min-width: 849px) {
    .fp-s3 > .section-content > .row {
        padding-top: 100px;
    }
}

.fp-s3 h2 {
    font-size: 30px;
    line-height: 40px;
    color: #CA0008 !important;
    margin-bottom: 50px;
}

.fp-s3 .text {
    font-size: 16px;
    line-height: 23px;
    font-weight: 400;
    color: #331F61 !important;
    margin-bottom: 30px;
}

.fp-s3 .button {
    background-color: #CA0008;
    font-weight: 600;
}
@media screen and (max-width: 768px) {
    .fp-s3 h2 {
        font-size: 27px;
        line-height: 36px;
        margin-bottom: 30px;
    }
}
/* 
 * =========================================================================
 * ATTACHMENTS SECTION
 * =========================================================================
*/

#fraedsluefni-posts {
    margin-bottom: 150px;
    min-height: 200px;
    position: relative;
}

.arrow-selector {
    position: absolute;
    width: 57px;
    height: 28px;
    left: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 10;
}

.arrow-left {
    transform: translate(-60px, 0);
    opacity: 0;

    &.visible {
        opacity: 1;
        pointer-events: auto;
    }
}

.arrow-right {
    right: 0;
    left: auto;
    transform: translate(60px, 0); /* Initial position */

    opacity: 0;

    &.visible {
        opacity: 1;
        pointer-events: auto;
    }
}

.arrow-left svg {
    rotate: -90deg;
    margin-left: 31px;
}

.arrow-right svg {
    rotate: 90deg;
    margin-left: -31px;
}

/* Loading state styles */
.fraedsluefni-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
    margin: 0 -15px;
}

.fraedsluefni-loading.active {
    opacity: 1;
}

.loading-row {
    display: flex;
    /* margin-bottom: 20px; */
    animation: pulse 1.5s infinite;
    /* gap: 15px; */
}

.loading-row .col {
    background: #f0f0f0;
    min-height: 100px;
    margin: 0;
}

.loading-row .col:nth-child(1) {
    flex: 0 0 35%;
}

.loading-row .col:nth-child(2) {
    flex: 0 0 45%;
}

.loading-row .col:nth-child(3) {
    flex: 0 0 20%;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

.no-posts-found {
    text-align: center;
    justify-content: center;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    min-height: 120px;
    margin: 0 -15px;
    padding: 15px;
    background-color: #f0f0f0;
    
    p {
        margin: 0;
        font-weight: 700;
    }
}

/* Ensure smooth transitions for content */
.netvis-files-and-links {
    /* transition: opacity 0.3s ease; */
    margin-bottom: 50px;
}

.netvis-files-and-links.loading {
    opacity: 0;
}

.attachments-date {
    font-size: 16px;
    line-height: 40px;
    color: #331F61;
    /* margin-left: 30px; */
}

.fraedsluefni-tags,
.fraedsluefni-tags li  {
    margin-bottom: 0px;
}

.attachments-item-title {
    font-size: 22px;
    line-height: 30px;
    color: #331F61;
    font-weight: 700;
    padding-bottom: 12px;
}

.attachments-item-description {
    font-size: 16px;
    line-height: 25px;
    color: #483A89;
    padding-bottom: 12px;
}

.netvis-files-and-links {

    p {
        margin-bottom: 0;
    }

    .attachment-link {
        display: inline-flex;
        align-items: center;
        /* padding: 30px; */
    }
    
    .open-attachment-text {
        font-size: 14px;
        line-height: 40px;
        font-weight: 400;
    
        &.url {
            padding-right: 15px;;
            color: #483A89;
        }
    
        &.pdf {
            padding-right: 23px;
            color: #CA0008;
        }
    }
    
    .attachment-link-icon {
        margin-right: 10px;
        width: 32px;
        height: 32px;
    }
    
    .gray-background {
        background-color: rgba(147, 147, 147, 0.1);
    }
    
    .white-background {
        background-color: #FFFFFF;
    }
}

.attachment-category {
    font-size: 14px;
    line-height: 25px;
    color: #939393;
    list-style-type: none;
    padding-bottom: 10px;

    li {
        border: 1px solid #939393;
        display: inline-block;
        padding: 0 4px;
        margin-right:10px;
        margin-left: 0 !important;
        margin-bottom: 5px;
    }
}

.fraedsluefni-filters-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .fraedsluefni-filters-wrapper {
        flex-direction: column;
        gap: 0px;
    }
    .fraedsluefni-filters {
        /* justify-content: left !important; */
        margin-bottom: 0px !important;
    }
    #fraedsluefni-search {
        border-right: 1px solid #939393 !important; 
    }
    .fraedsluefni-filters-wrapper .button-wrapper {
        margin: auto;
    }
}

.fraedsluefni-filters {
    display: flex;
    /* gap: 0.5rem; */
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
#fraedsluefni-search {
    padding: 0.5rem;
    font-size: 1rem;
    max-width: 400px;
    width: calc(100vw - 30px);
    border: 1px solid #939393;
    border-right: none;
    background-color: #D9D9D920;
    box-shadow: none;
    height: 45px;
}
/* @media (max-width: 768px) {
    #fraedsluefni-search {
        min-width: initial;
        width: 100%;
    }
} */
 
.tags-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
@media (max-width: 768px) {
    .tags-container {
        justify-content: left;
    }
}
#fraedsluefni-search:before {
    content: url('/wp-content/uploads/search-icon.svg');
}
.fraedsluefni-search-dropdown {
    padding: 10px;
}
.dropdown-checkbox {
    position: relative;
}
.dropdown-toggle {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #888;
    cursor: pointer;
    font-size: 1rem;
}
.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 110%;
    background: #fff;
    border: 1px solid #888;
    z-index: 10;
    min-width: 180px;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.dropdown-menu label {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer;
}
.fraedsluefni-filters-wrapper button {
    background-color: #2D1856;
}


.custom-checkbox {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #3d2a5a;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 32px; /* space for the box */
  }
  
  .custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  .custom-checkbox .checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 24px;
    background-color: #fff;
    border: 1px solid #888;
    border-radius: 0;
    box-sizing: border-box;
    transition: border-color 0.2s;
  }
  
  .custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 8px;   /* adjust as needed */
    top: 3px;    /* adjust as needed */
    width: 7px;  /* adjust as needed */
    height: 14px;/* adjust as needed */
    border: solid #3d2a5a;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    border-radius: 1px;
  }
  
  .custom-checkbox:hover .checkmark {
    border-color: #3d2a5a;
  }





#content .button,
#content button {
    padding-right: 50px;
    height: 45px;
    clip-path: polygon(
        0 0,         /* top left */
        100% 0,      /* top right */
        100% calc(100% - 45px), /* just above bottom right */
        calc(100% - 45px) 100%, /* 45-degree notch inwards */
        0 100%       /* bottom left */
    );
    transition: all 0.3s ease;
    align-content: center;
    width: max-content;
}

.grid-layout .netvis-files-and-links.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.fraedsluefni-post.grid-item {
    background: #93939320;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.fraedsluefni-post.grid-item:hover {
    transform: translateY(-10px);
}
.fraedsluefni-post-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}
.fraedsluefni-featured-image {
    width: 100%;
    /* margin-bottom: 15px; */

    height: 220px;
    min-height: 220px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 600px) {
    .grid-layout .netvis-files-and-links.grid {
        grid-template-columns: 1fr;
    }
}

.attachment-category-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style-type: none;
    list-style: none;

    button {
        min-width: 215px;
        min-height: 48px;
        display: flex; 
        justify-content: center;
        align-items: center;
        text-align: center;
        border: 2px solid #939393;
        color: #331F61;
        margin: 0 !important;

        &:hover {
            background-color: #331F61;
            color: #FFFFFF;
            border-color: #331F61;
        }
    }

    li {
        margin: 0 !important;
    }
}

.attachment-category-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style-type: none;
    list-style: none;

    button {
        min-width: 180px;
        min-height: 40px;
        display: flex; 
        justify-content: center;
        align-items: center;
        text-align: center;
        border: 2px solid #939393;
        color: #331F61;
        margin: 0 !important;

        &:hover {
            background-color: #939393;
            color: #FFFFFF;
            border-color: #939393;
        }
    }

    li {
        margin: 0 !important;
    }
}

.attachment-category-parent button {
    text-decoration: none;
    transition: all 0.3s ease;
}

.attachment-category-parent button.active {
    background-color: #331F61;
    border-color: #331F61;
    color: #FFFFFF;
}

.attachment-category-child button {
    text-decoration: none;
    transition: all 0.3s ease;
}

.attachment-category-child button.active {
    background-color: #939393;
    border-color: #939393;
    color: #FFFFFF;
}

.fraedsluefni-post {
    position: relative;
    /* padding: 10px 0; */
}

@media (max-width: 768px) {
    .attachment-category-parent {
        justify-content: center;
        flex-wrap: wrap;
        button {
            min-width: auto;
            padding-left: 15px;
            padding-right: 15px;
        }
    }

    .attachment-category-child {
        justify-content: center;
        flex-wrap: wrap;
        button {
            min-width: auto;
            padding-left: 15px;
            padding-right: 15px;
        }
    }

    .attachments-date {
        margin-left: 0;
    }
    
    .attachment-link {
        padding: 15px !important;
    }

    .arrow-selector {
        display: none;
    }
}

/* 
 * =========================================================================
 * MENU
 * =========================================================================
*/

body.home {

    .header-wrapper.stuck a{
        color: var(--color-primary) !important;
        font-weight: 500 !important;
    }

    .header-nav {
        a {
            color: #fff !important;
            font-weight: 600 !important;        
        }
    }
}

body {
    [id^="menu-item-"] {
        display: inline-block;
    }
    
    .header-nav {
        .nav-icon {
            display: none;
        }
    }
}

[id^="menu-item-"] {
    .nav-top-link {
        color: #483A89 !important;
        font-size: 14px;
        margin-left: 3rem;
    }

    &.active > .nav-top-link {
        font-weight: 700;
        color: #2D1856;
    }
}

.mobile-nav {
    pointer-events: none;
}

.mobile-nav .nav-icon {
    margin-top: 5px;
}

.stuck .mobile-nav .nav-icon {
    margin-top: 0px;
}

.mobile-nav .nav-icon i {
    display: none;
}
.mobile-nav .nav-icon > a {
    pointer-events: auto;
}

.mobile-nav .nav-icon > a:before {
    content: "";
    display: block;
    width: 56px;
    height: 56px;
    background-image: url('/wp-content/themes/netvis/assets/Netvis_hamburger_menu.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.stuck .mobile-nav .nav-icon > a:before {
    width: 40px;
    height: 40px;
}

@media screen and (max-width: 768px) {
    #logo {
        width: 150px !important;
    }
}

@media screen and (max-width: 850px) {
    .hover-svg-container {
        display: none !important;
    }
}


/* Sidebar menu */
.off-canvas-right.mfp-ready .mfp-content {
    background-color: #80d9df;
    width: 350px;
}

.off-canvas-right {
    .sidebar-menu {
        float: right;
    }

    .mfp-content {
        box-shadow: none !important;
    }

    .mfp-close {
        mix-blend-mode: normal;
        opacity: 1;
        right: 70px;
        top: 50px !important;
        width: 44px;
        height: 44px;

        .feather {
            content: "";
            background-image: url('/wp-content/themes/netvis/assets/Netvis_mobile_menu_close.svg');
            background-size: contain;
            background-repeat: no-repeat;
            display: block;
            width: 44px;
            height: 44px;
            line {
                display: none;
            }
        }
    }
}

.nav-sidebar.nav-vertical > li + li {
    border: none;
    padding-right: 70px;
    a {
        padding-bottom: 5px;
        padding-top: 5px;
    }
}

.nav-sidebar.nav-vertical>li.menu-item.active, .nav-sidebar.nav-vertical>li.menu-item:hover {
    background-color: unset;
}

.nav-sidebar {
    top: 120px;
    li:first-child {
        padding-right: 70px;
        a {
            padding-bottom: 5px;
            padding-top: 5px;
        }
    }
}

@media screen and (min-width: 850px) {
    .mfp-container .mfp-content::before {
        content: "";
        display: block;
        width: 225px;
        height: 225px;
        background-image: url('/wp-content/themes/netvis/assets/Netvis_pattern_turquoise.svg');
        position: absolute;
        background-size: contain;
        background-repeat: no-repeat;
        top: 0;
        right: 550px;
        z-index: -1;
        transform: rotate(270deg);
    }

    .off-canvas-right.mfp-ready .mfp-container { 
         .mfp-content {
            background: linear-gradient(90deg, rgba(2, 0, 36, 0) 225px, #80d9df 225px);
            width: 775px;
            background-color: unset;
        }
    }
}


/* 
 * =========================================================================
 * Sections Background patterns
 * =========================================================================
*/

.section-bg-pattern.frontpage {
    background-image: url('/wp-content/themes/netvis/assets/Netvis_frontpage_bg_img.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Upper element */
.section-bg-pattern::before {
    content: "";
    display: block;
    width: 225px;
    height: 225px;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: -225px;
    right: -3px;
}

/* Gray */
.section-bg-pattern.gray-before::before {
    background-image: url('/wp-content/uploads/gray-before-complex.svg');
}
.section-bg-pattern.gray-after::after {
    background-image: url('/wp-content/uploads/gray-after-complex.svg');
}

/* Violet */
.section-bg-pattern.violet-before-simple::before {
    background-image: url('/wp-content/uploads/violet-before.svg');
    top: -222px;
}
.section-bg-pattern.violet-after-simple::after {
    background-image: url('/wp-content/uploads/violet-after.svg');
    bottom: -222px;
}
/* Complex patterns */
.section-bg-pattern.violet-before::before {
    background-image: url('/wp-content/uploads/violet-before-complex.svg');
}
.section-bg-pattern.violet-after::after {
    background-image: url('/wp-content/uploads/violet-after-complex.svg');
}
/* Violet Light */
.section-bg-pattern.violet-before-light::before {
    background-image: url('/wp-content/uploads/violet-before-complex-light.svg');
}
.section-bg-pattern.violet-after-light::after {
    background-image: url('/wp-content/uploads/violet-after-complex-light.svg');
}
.violet-before-light a {
    color: #fff;
    font-weight: 700;
}

/* Turquoise */
.section-bg-pattern.turquoise-before::before {
    background-image: url('/wp-content/uploads/turquoise-before-complex.svg');
}
.section-bg-pattern.turquoise-after::after {
    background-image: url('/wp-content/uploads/turquoise-after-complex.svg');
    bottom: -224px;
}

/* Red */
.section-bg-pattern.red-before::before {
    background-image: url('/wp-content/uploads/red-before-complex.svg');
}
.section-bg-pattern.red-after::after {
    background-image: url('/wp-content/uploads/red-after-complex.svg');
}

/* Dark gray */
.section-bg-pattern.dark-gray-before::before {
    background-image: url('/wp-content/uploads/dark-gray-before.svg');
    top: -223px;
}

/* Frontpage image */
.section-bg-pattern.frontpage::before {
    background-image: url('/wp-content/themes/netvis/assets/Netvis_frontpage_upper_pattern.svg');
    width: 400px;
    height: 400px;
    top: -400px;
}

/* Lower element */
.section-bg-pattern::after {
    content: "";
    display: block;
    width: 225px;
    height: 225px;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    bottom: -224.5px;
    left: 0;
    z-index: 1;
}


/* Frontpage image */
.section-bg-pattern.frontpage::after {
    background-image: url('/wp-content/themes/netvis/assets/Netvis_frontpage_lower_pattern.svg');
    transform: rotate(0deg) !important;
    /* bottom: -224px; */
    width: 300px;
    height: 300px;
    bottom: -300px;
}

.fp-s4 img {
    width: 220px;
}
.fp-s4 .better-internet-h2 {
    font-weight: 300;
    font-size: 32px;
    line-height: 45px;
    margin-bottom: 10px;
}
.fp-s4 .better-internet-h2 strong {
    font-weight: 600;
}

@media (max-width: 768px) {
    .section-bg-pattern::before {
        width: 120px;
        height: 120px;
        top: -120px !important;
        /* right: -10px; */
    }
    /* Lower element */
    .section-bg-pattern::after {
        width: 120px;
        height: 120px;
        bottom: -119.5px !important;
        /* left: -10px; */
    }

    .section-bg-pattern.frontpage::after {
        width: 200px !important;
        height: 200px !important;
        bottom: -200px !important;
    }
    
    /* fix white line issues */
    .violet-after-simple.section-bg-pattern::before {
        top: -119px !important;
    }
    .violet-after-simple.section-bg-pattern::after {
        bottom: -119px !important;
    }

}



/*
 * =========================================================================
 * Events shortcode
 * =========================================================================
*/

.fp-s5 h2 {
    font-size: 32px;
    line-height: 45px;
}
.fp-s5 h2 {
    color: #483A89 !important;
    font-weight: 600;
    margin-bottom: 66px;
}

.netvis-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 900px) {
    .netvis-events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.netvis-event-card {
    background: #93939320;
    min-height: 370px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.netvis-event-image {
    height: 220px;
    object-fit: contain;
    margin: auto;
}
@media (max-width: 550px) {
    .netvis-event-image {
        height: auto;
    }
}
.netvis-event-image img {
    height: 100%;
    width: 100%;
}

/* .netvis-event-date-bar {
    background: #80D9DF;
    color: #3d2d7d;
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    font-size: 1.1rem;
} */
.netvis-event-content {
    padding: 1.5rem 1.2rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}
h3.netvis-event-title {
    color: #3d2d7d;
    font-size: 22px;
    line-height: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}
@media (max-width: 768px) {
    .netvis-event-title {
        font-size: 22px !important;
        line-height: 32px !important;
    }
}

.netvis-event-tags {
    margin-bottom: 5px;
}

.netvis-event-info {
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
@media (max-width: 1100px) {
    .netvis-event-info {
        flex-direction: column;
    }
}
.netvis-event-info .left-col {
    /* gap: 5px; */
    display: flex;
    flex-direction: column;
}
.netvis-event-icon {
    display: inline;
}
.netvis-event-icon.clock {
    margin-right: 6px;
    margin-left: -1px;
}
.netvis-event-icon.location {
    margin-right: 10px;
    margin-left: 3px;
}
.netvis-event-icon.location img {
    height: 20px;
}
.netvis-event-info .right-col {    
    display: flex;
    align-items: flex-end;
}
.netvis-event-info .right-col button {
    margin: 0;
}

.dropdown-group-title {
    margin-bottom: 6px;
}
.custom-angled-button {
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    width: fit-content;
    background: #80D9DF;
    color: #fff !important;
    transition: all 0.3s ease;
    margin: 0;
}
.custom-angled-button:hover {
    box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .2);
} 



/*
 * =========================================================================
 * Event single page
 * =========================================================================
*/
.event-single-page {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    padding: 0 15px;
    /* max-width: 1000px; */
}
@media (max-width: 768px) {
    .event-single-page {
        margin: 3rem 0 10rem 0;
    }
}

.netvis-event-single-page-content {
    display: flex;
    flex-direction: column;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

.netvis-event-single-page-header {
    margin-bottom: 2rem;
}

.netvis-event-card-large {
    background: #93939320;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.netvis-event-date-bar {
    background: #80D9DF;
    color: #3d2d7d;
    font-weight: 500;
    padding: 6px 24px;
    font-size: 1.3rem;
}
.netvis-event-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.netvis-event-title {
    color: #3d2d7d;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}
.netvis-event-excerpt {
    color: #3d2d7d;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}
.netvis-event-tag {
    display: inline-block;
    border: 1px solid #939393;
    color: #939393;
    font-size: 14px;
    padding: 1px 4px;
    margin-right: 0.5rem;
    margin-bottom: 0.3rem;
}
.netvis-event-info {
    gap: 10px;
}
.netvis-event-info-row {
    color: #3d2d7d;
    font-size: 16px;
    /* margin-bottom: 0.5rem; */
    display: flex;
    align-items: center;
}
.netvis-event-icon {
    margin-right: 0.6em;
    font-size: 1.2em;
}
.event-single-page .netvis-event-icon.clock {
    padding-bottom: 3px;
    margin-right: 5px;
}

.event-single-page .netvis-event-icon.location img {
    opacity: .8;
}
.netvis-event-full-content p {
    margin-top: 20px;
    font-size: 16px;
    line-height: 24px;
}



/*
 * =========================================================================
 * Hvad er Netvis?
 * =========================================================================
*/
.hvad-er--s3 > .section-content > .row {
    max-width: 800px;
}



/**
 * =========================================================================
 * Varia
 * =========================================================================
*/


.s--heilraedi .r--heilraedi  {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr)); /* Minimum 250px width, then equal distribution */
    gap: 20px !important;
    margin: 0 !important;
}
.s--heilraedi .r--heilraedi > div {
    width: 100%;
    background-color: var(--red-light);
    color: var(--color-primary);
    padding: 20px; /* Increased padding for better proportions */
    font-weight: 700;
    font-size: 13px;
    line-height: 18px;
    min-height: 200px;
    min-width: 100%;
}
.s--heilraedi .r--heilraedi > div strong {
    font-weight: 600;
}
.s--heilraedi .r--heilraedi span {
    font-weight: 400;
}

/* Responsive breakpoints for the grid */
@media (max-width: 768px) {
    .s--heilraedi .r--heilraedi {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 480px) {
    .s--heilraedi .r--heilraedi {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}




/* 
 * =========================================================================
 * Contact form
 * =========================================================================
*/
.contact-form-header {
    display: flex;
    text-align: center;
    margin-top: 130px;
}

.netvis-contact-form {
    /* margin-top: 40px; */
    
    input, textarea{
        background-color: #ffffff;
        border: 1px solid #939393;
        box-shadow: none;
    }

    &.gray-inputs input[type="text"],
    &.gray-inputs input[type="email"],
    &.gray-inputs input[type="tel"],
    &.gray-inputs textarea  {
        background-color: #F5F5F5;
    }

    .label {
        text-align: left !important;
    }

    .text-left label {
        text-align: left !important;
    }
}

.netvis-submit-form-btn {
    display: flex;
    text-align: left;
    margin-top: 20px;

    input {
        background-color: #2D1856;
        color: #FFFFFF;
        padding-right: 50px;
        text-transform: inherit;
        margin-right: auto;
        text-align: left;
        padding-left: 20px;
        font-size: 18px;
        line-height: 40px;
        height: 45px;
        clip-path: polygon(
            0 0,         /* top left */
            100% 0,      /* top right */
            100% calc(100% - 45px), /* just above bottom right */
            calc(100% - 45px) 100%, /* 45-degree notch inwards */
            0 100%       /* bottom left */
        );
        border: 0;
    }

    .wpcf7-spinner {
        position: absolute;
        left: 62%;
        top: 14px;
    }
}
.netvis-submit-form-btn.centered {
    text-align: center;
}

.mailchimp-1 input[type="submit"] {
    background-color: #2D1856;
    color: #FFFFFF;
    padding-right: 50px;
    text-transform: inherit;
    margin-right: auto;
    text-align: left;
    padding-left: 20px;
    font-size: 18px;
    line-height: 40px;
    height: 45px;
    clip-path: polygon(
        0 0,         /* top left */
        100% 0,      /* top right */
        100% calc(100% - 45px), /* just above bottom right */
        calc(100% - 45px) 100%, /* 45-degree notch inwards */
        0 100%       /* bottom left */
    );
    border: 0;
}


.skra-mig-a-postlista-netvis {
    display: flex !important;
    flex-direction: row !important;
}
.s--skra-mig-a-postlista-netvis h2 {
    font-size: 30px;
    line-height: 40px;
    font-weight: 600;
    margin-bottom: -10px !important;
}
.skra-mig-a-postlista-netvis input {
    margin-bottom: 0 !important;
}
.row>div:not(.col):not([class^=col-]):not([class*=" col-"]) {
    width: calc(100% - 150px) !important;
}
.skra-mig-a-postlista-netvis .email-wrapper {   
    align-content: center;
}
.skra-mig-a-postlista-netvis .email-wrapper input {   
    height: 45px;
}
.skra-mig-a-postlista-netvis .netvis-submit-form-btn {
    margin-top: 0 !important;
    position: absolute;
    left: calc(100% - 150px);
}

@media (max-width: 1000px) {
    .skra-mig-a-postlista-netvis .email-wrapper .wpcf7-form-control-wrap {
        padding-left: 15px !important;
    }
}




/* 
 * =========================================================================
 * Footer
 * =========================================================================
*/

#footer .stack-row > div:nth-child(1) img {
    -webkit-filter: brightness(2) grayscale(1);
    filter: brightness(2) grayscale(1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
/* #footer .stack-row > div:nth-child(2) img {
    -webkit-filter: brightness(1) grayscale(1);
    filter: brightness(1) grayscale(1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
} */
#footer .stack-row > div:nth-child(3) img {
    -webkit-filter: brightness(0.5) grayscale(1);
    filter: brightness(0.5) grayscale(1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
#footer .stack-row > div:nth-child(4) img {
    -webkit-filter: brightness(1.3) grayscale(1);
    filter: brightness(1.3) grayscale(1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
#footer .stack-row > div:nth-child(5) img {
    -webkit-filter: brightness(1.7) grayscale(1);
    filter: brightness(1.7) grayscale(1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
#footer .stack-row > div:nth-child(6) img {
    -webkit-filter: brightness(2) grayscale(1);
    filter: brightness(2) grayscale(1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}


.mailchimp-1 {
    display: flex;
    flex-direction: row;
}

.mailchimp-1 input[type="email"] {
    height: 45px;
    border: 1px solid #939393;
    box-shadow: none;
    background-color: #ffffff;
    border-radius: 0;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
}

.mailchimp-1 > p:first-child {
    width: 100%;
}


.absolute-footer {
    display: none;
}

.netvis-footer-logo::before {
    content: "";
    display: block;
    width: 210px;
    height: 196px;
    background-image: url('/wp-content/themes/netvis/assets/Netvis_footer_vector.svg');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: -7px;
    left: 0;
}

@media screen and (max-width: 850px) {
    .netvis-footer-logo::before {
        display: none !important;
    }
}


/* General blog layout styles */
.post-item {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
}

.entry-date {
    font-size: 14px;
    line-height: 40px;
    font-weight: 400;
    color: #2D1856;
}

.entry-image {
    img {
        width: 100%;
        height: 278px;
    }
}

.entry-description {
    font-size: 14;
    line-height: 24px;
    font-weight: 300;
    color: #2D1856;
}

/* Single-item row */
.single-item-row {
    width: 100% !important; /* Full-width */
    height: 464px !important;
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    height: 464px;
    display: grid; /* Ensure grid layout */
    grid-template-rows: auto; /* Default layout */

    .text-overlay {
        background: #FFFFFF; 
        max-width: 415px;
        height: 350px;
        margin-top: 20px;
        margin-left: 40px;

        .entry-header-text {
            padding: 20px;
            width: 400px;
            height: 100%;
        }

        .entry-title {
            font-size: 32px;
            font-weight: 700;
            line-height: 40px;
            color: #2D1856;
        }

        .entry-summary {
            padding-bottom: 30px;
        }

        .read-more-btn-icon {
            display: inline-flex;
            align-items: center;
            
            a {
                font-size: 14px;
                line-height: 40px;
                font-weight: 700;
            }
        }

        .read-more-btn-icon::after {
            content: '';
            display: block;
            background-image: url('/wp-content/themes/netvis/assets/Netvis_posts_read_more_icon.svg');
            width: 34px;
            height: 34px;
            background-repeat: no-repeat;
            background-position: left center;
            margin-left: -5px;
        }
    }

    /* Lower element */
    .text-overlay::after {
        content: "";
        display: block;
        width: 56px;
        height: 56px;
        background-size: contain;
        background-repeat: no-repeat;
        position: absolute;
        bottom: 38px;
        left: 55px;
        z-index: 1;
        background-image: url('/wp-content/themes/netvis/assets/Netvis_posts_single_item_row_pattern.svg');
    }
}

/* Two-item row */
[id^="post-"]:has(.two-item-row) {
    max-width: calc(50% - 10px) !important; /* Two items per row */
    
}

.two-item-row, .three-item-row {
    float: left;
    padding-top: 20px;

    .entry-title {
        font-size: 20px;
        line-height: 49px;
        font-weight: 700;
    }

    &.col {
        padding: 0;
    }
}
.two-item-row:nth-child(3) {
    margin-right: 0;
}

/* Three-item row */
.three-item-row {
    float: left;
    margin-right: 10px;
}
.three-item-row:nth-child(3n) {
    margin-right: 0;
}

@media (max-width: 768px) {
    .three-item-row {
        width: 100% !important;
        float: none;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .netvis-single-post {
        .entry-header-text, .entry-content, .related-posts {
            padding: 0 10px;
        }

        .related-posts {
            display: flex;
            align-items: center;
        }
    }
}

.post-thumbnail-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.post-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; 
    overflow: hidden;
}

.post-thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* For two-item-row */
.two-item-row .post-thumbnail-wrapper {
    height: auto;
}

/* For three-item-row */
.three-item-row .post-thumbnail-wrapper {
    height: auto;
}

.single-entry-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 49px;
    color: #2D1856;
}

.netvis-single-post {
    .entry-header-text {
        padding-bottom: 0;
    }

    .entry-image {
        img {
            width: 100% !important;
            height: auto !important;
        }
    }

    p {
        font-weight: 700;
        font-size: 16px;
        line-height: 24px;
        color: #2D1856;
    }

    .entry-content {
        padding-top: 0;
    }

    .content-in-two-col {
        column-count: 2;
        column-gap: 30px;
        line-height: 24px;
    }

    .related-posts {
        padding-top: 100px;
        display: flex;
        justify-content: center;

        .entry-header-text, .entry-content, .related-posts {
            padding: 0 10px;
        }
        
        .post-item {
            border: none;
            display: grid;
        }

        .image-cover {
            height: 140px;
            width: 288px;
        }
        
        .post-title {
            font-size: 20px;
            line-height: 49px;
            font-weight: 700;
            color: #2D1856;
        }

        .box-text {
            padding-top: 0;
            margin-top: -20px;
        }
    }
}

.blog-wrapper.blog-single {
    .row {
        gap: 0px !important;

        &.align-center {
            display: flex;
            align-items: center;
        }
    }   

}   

.rp4wp-related-posts {
    display: none !important;
}

.mobile-content {
    display: none;
}

@media (max-width: 1220px) {
    .related-posts {
        display: grid;
        gap: 10px; 

        .post-item {
            grid-column: span 6;
        }
    }
}

@media (max-width: 768px) {
    .related-posts {
        .post-item {
            grid-column: span 6;
        }
    }
}

@media (max-width: 768px) {

    .single-item-row {
        display: block; /* Switch to block layout */
        height: auto; /* Allow height to expand */
        padding-bottom: 20px; /* Add spacing below */
        .text-overlay {
            position: static; /* Remove absolute positioning */
            margin-top: 20px; /* Add spacing below the image */
            background: #fff; /* Optional: Add a background color */
            padding: 15px; /* Adjust padding */
            color: #000; /* Adjust text color */
        }
    
        .article-inner {
            display: block;
        }
    
        .entry-description, .entry-summary, .entry-header-text {
            display: block;
            text-align: center;
            margin-top: 15px;
        }
    }

    .related-posts {
        display: grid;
        gap: 10px; 
        

        .post-item {
            /*grid-column: span 12;*/
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        img {
            max-width: 100%; /* Ensure images don't overflow the wrapper */
            height: 100%; /* Maintain aspect ratio */
        }
    }

    .text-overlay::after {
        display: none !important;
    }

    .mobile-content {
        display: block;
        height: auto;
        bottom: -180px;
        position: absolute;
    }
}




/*
 * =========================================================================
 * Events Archive
 * =========================================================================
*/

.events-archive-main {
    background: #fff;
    padding: 2rem 0;
    margin-bottom: 100px;
}
.events-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.events-archive-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.events-archive-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #483A89;
    /* text-transform: uppercase; */
    margin: 0;
}
.events-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    justify-content: center;
}
.event-archive-card {
    background: #f7f7f7;
    border-radius: 0;
    min-width: 320px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    padding: 0;
}
.event-archive-date-bar {
    background: #80D9DF;
    color: #3d2d7d;
    font-weight: 500;
    padding: 0.9rem 1.2rem;
    font-size: 1.1rem;
    margin: 0;
    border-radius: 0;
    letter-spacing: 0.5px;
}
.event-archive-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f7f7f7;
}
.event-archive-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3d2d7d;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}
.event-archive-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.event-archive-title a:hover {
    color: #483A89;
}
.event-archive-excerpt {
    color: #3d2d7d;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}
.event-archive-info {
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
}
.netvis-event-icon > img {
    min-width: 16px;
}
.events-archive-main .netvis-event-icon.clock {
    margin-right: 4px;
}
.netvis-event-icon.location {
    margin-left: 3px;
    opacity: .8;
}
.events-archive-main .button {
    margin-right: auto;
    background: #80D9DF;
    padding-right: 50px;
    height: 45px;
    clip-path: polygon(
        0 0,         /* top left */
        100% 0,      /* top right */
        100% calc(100% - 45px), /* just above bottom right */
        calc(100% - 45px) 100%, /* 45-degree notch inwards */
        0 100%       /* bottom left */
    );
    transition: all 0.3s ease;
}
.events-archive-main .right-col .button {
    margin-bottom: 0 !important;
}
.event-archive-readmore:hover {
    background: #3d2d7d;
    color: #fff;
}
@media (max-width: 1100px) {
    .events-archive-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 700px) {
    .events-archive-grid {
        grid-template-columns: 1fr;
    }
    .event-archive-card {
        max-width: 100%;
        min-width: 0;
    }
}



/**
 * =========================================================================
 * Content pages
 * =========================================================================
*/

.fp-last-s .box-image .image-cover img,
.ff-s2 .box-image .image-cover img {
    object-fit: contain !important;
}
.fp-last-s .box-text-inner .lead,
.ff-s2 .box-text-inner .lead {
    font-size: 24px;
    line-height: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.fp-last-s .box-text-inner .subtext,
.ff-s2 .box-text-inner .subtext {
    font-size: 18px;
    line-height: 30px;
    font-weight: 500;
}

/*
* =========================================================================
* UX Builder - Swiper
* =========================================================================
*/

.swiper-wrapper {
    padding-top: 100px;
}
.swiper-button-prev,
.swiper-button-next {
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.swiper-button-prev {
    margin-left: -30px;
}

.swiper-button-next {
    margin-left: 30px;
}

.home-sec10 .swiper-wrapper {
    padding-top: 0px;
}

.home-sec10 .swiper-button-prev,
.home-sec10 .swiper-button-next {
    display: none;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 24px;
    color: var(--secondary-color);
}

.tab-panels .swiper {
    margin-bottom: 50px;
}

.img-wrapper-poster {
    aspect-ratio: 9 / 13;
}

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

/*
* =========================================================================
* Fraedsluefni Posts Filtering
* =========================================================================
*/

.fraedsluefni-filters-wrapper .loading {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: var(--primary-color);
}

.fraedsluefni-filters-wrapper .error {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: var(--red-dark);
    background: rgba(255, 94, 102, 0.1);
    border-radius: 8px;
    margin: 20px 0;
}

.fraedsluefni-filters-wrapper .no-posts-found {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: var(--primary-color);
    background: var(--gray);
    border-radius: 8px;
    margin: 20px 0;
}

/*
* =========================================================================
* Research Carousel
* =========================================================================
*/

.research-carousel {
    margin: 40px 0;
}

.research-carousel .swiper {
    padding: 20px 0;
}

.research-carousel .swiper-wrapper {
    padding-bottom: 50px;
}

.research-carousel .swiper-slide {
    height: auto;
}

.research-card {
    display: block;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
}

.research-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 13;
    overflow: hidden;
    object-fit: contain;
}

.research-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: transform 0.3s ease; */
}

/* .research-card:hover .research-card-image img {
    transform: scale(1.05);
} */

/* Swiper Navigation */
.research-carousel .swiper-button-next,
.research-carousel .swiper-button-prev {
    color: var(--primary-color);
    /* background: rgba(255, 255, 255, 0.9); */
    width: 40px;
    height: 40px;
    /* border-radius: 50%; */
}

/* .research-carousel .swiper-button-next:hover,
.research-carousel .swiper-button-prev:hover {
    background: #fff;
} */

.research-carousel .swiper-button-next:after,
.research-carousel .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* Swiper Pagination */
.swiper-pagination-bullets {
    margin-top: 150px;
}

.research-carousel .swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.3;
}

.research-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .research-carousel {
        padding: 0 10px;
    }
    
    .research-carousel .swiper-button-next,
    .research-carousel .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .research-carousel .swiper-button-next:after,
    .research-carousel .swiper-button-prev:after {
        font-size: 16px;
    }
}
.text-404 {
	color: var(--Vernd, #483A89);
    font-family: "Swis721 BT";
    font-size: 1.6875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 3.0625rem;
}
.text-404 strong {
	color: var(--Vernd, #483A89);
    text-align: center;
    font-family: "Swis721 BT";
    font-size: 1.6875rem;
    font-style: normal;
    font-weight: 800;
    line-height: 3.0625rem;
}

.section-404 {
    padding: 200px 0;
}
@media (max-width: 768px) {
    .section-404 {
        padding: 100px 0;
    }
}
.section-404-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

.section-404-inner img {
    width: 100%;
    max-width: 716px;
    margin-bottom: 60px;
}
.section-404-inner h1 {
    font-size: 27px;
    font-weight: 300;
    line-height: 1.2;
}
.section-404-inner h1 strong {
    font-weight: 800;
}

@media (max-width: 768px) {
    .section-404-inner {
        gap: 10px;
    }
    .section-404-inner img {
        width: 70%;
        margin-bottom: 30px;
    }
}