body {
    font-family: "Inter", sans-serif;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

*,
*::after,
*::before {
    box-sizing: border-box;
}

:root {
    --yellow-color: #ffda60;
    --yellow-hover-color: #f9de85;
}

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

.btn {
    padding: 12px 24px;
    border-radius: 24px;
    background: var(--yellow-color);
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    transition: all 300ms ease;
}

.faded-hr {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
    margin: 20px 0;
}

h2 {
    font-size: 40px;
    font-family: "Poppins", sans-serif;
    margin: 16px 0;
    text-align: center;
}

h3 {
    line-height: 1.6;
}

section {
    padding: 40px 30px;
}

.sub-heading {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

p {
    line-height: 2;
}

.btn:hover {
    background: var(--yellow-hover-color);
    color: #000;
}

nav {
    box-shadow: 0 4px 40px -8px rgba(0, 0, 0, 0.3);
    position: fixed;
    left: 0;
    right: 0;
    z-index: 400;
    background: #fff;
    padding: 16px 30px;
    transition: all 900ms ease;
}

nav.scrolled {
    padding: 8px 30px;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .container a.logo {
    font-size: 24px;
}

nav .container a.logo span {
    font-size: 14px;
}

nav .container a {
    text-decoration: none;
    font-weight: bold;
    color: #000;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 300ms ease;
}

nav .container a:hover {
    color: #ed2243;
}

nav .menu-items {
    display: flex;
    gap: 36px;
    align-items: center;
}

/* Mega menu */

/* The dropdown container */
.dropdown {
    float: left;
    overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
    font-size: 14px;
    border: none;
    outline: none;
    color: black;
    padding: 14px 16px;
    background-color: inherit;
    text-transform: uppercase;
    font-weight: bold;
    /* Important for vertical align on mobile phones */
    margin: 0;
    /* Important for vertical align on mobile phones */
}

/* Add a red background color to navbar links on hover */
.navbar a:hover,
.dropdown:hover .dropbtn {
    background-color: #fff;
    color: #ed2243;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    width: 100%;
    left: 0;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Mega Menu header, if needed */
.dropdown-content .header {
    background: var(--yellow-color);
    padding: 16px;
    color: black;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Create three equal columns that floats next to each other */
.column {
    float: left;
    width: 33.33%;
    padding: 10px;
    background-color: #fff;
    height: 350px;
}

/* Style links inside the columns */
.column a {
    float: none;
    color: black;
    padding: 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

/* Add a background color on hover */
.column a:hover {
    background-color: var(--yellow-hover-color);
}

/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}


/* Header */

.header-swiper .swiper {
    height: 100%;
    width: 100%;
}

.header-swiper .swiper-slide {
    height: 100vh;
}

.header-swiper .swiper-slide .content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    color: #fff;
    position: relative;
    padding-top: 73px;
}

.header-swiper .swiper-slide .content::before {
    position: absolute;
    content: "";
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.header-swiper .swiper-slide img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.header-swiper .swiper-slide .slide-title,
.header-swiper .swiper-slide p {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1200ms ease-out, transform 900ms ease-out;
}

.header-swiper .swiper-slide.swiper-slide-active .slide-title,
.header-swiper .swiper-slide.swiper-slide-active p {
    opacity: 1;
    transform: translateY(0);
}

.header-swiper .swiper-slide .slide-title {
    font-size: 50px;
    font-weight: bold;
    z-index: 3;
    text-align: center;
}

.header-swiper .swiper-slide p {
    font-size: 30px;
    z-index: 3;
    transition-delay: 200ms;
    text-align: center;
}

.header-swiper .swiper-button-next,
.header-swiper .swiper-button-prev {
    background: var(--yellow-color);
    padding: 8px;
    width: 50px;
    height: 50px;
    opacity: 0.2;
}

.header-swiper .swiper-button-next:hover,
.header-swiper .swiper-button-prev:hover {
    opacity: 1;
}

.header-swiper .swiper-button-next::after,
.header-swiper .swiper-button-prev::after {
    font-size: 20px;
    color: #000;
}

/* Services section */

.services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 50px;
    gap: 60px;
}

.services-container .icon img {
    height: 50px;
}

.services-container .service {
    display: flex;
    gap: 30px;
    align-items: center;
}

.services-container .icon {
    border: 1px solid #eee;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
}

.services-container .icon:hover {
    background: var(--yellow-color);
}

.services-container .service h3 {
    margin: 4px 0;
}

.services-container .service p {
    margin-top: 16px;
    margin-bottom: 0;
    opacity: 0.8;
}

/* About section */

#about {
    padding: 0;
}

#about .content {
    display: flex;
    gap: 50px;
    align-items: center;
}

#about .content .left,
#about .content .right {
    flex: 1;
}

#about .content img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
}

#about h2 {
    text-align: left;
}

#about .right {
    padding-right: 32px;
}

/* Blog section */

.cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.cards-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cards-container a {
    color: #fff;
    background: #333;
    padding: 4px 16px;
    text-decoration: none;
}

/* Testimonials section */

#testimonials {
    background: var(--yellow-color);
}

.testimonials-swiper .swiper-slide {
    text-align: center;
    font-size: 18px;
    padding: 30px;
}

.testimonials-swiper .swiper-slide p {
    font-size: 24px;
    font-style: italic;
    opacity: 0;
    transform: translateY(40px);
    transition: all 800ms ease;
}

.testimonials-swiper .swiper-slide.swiper-slide-active p {
    opacity: 1;
    transform: translateY(0);
}

.testimonials-swiper .swiper-slide .name {
    font-weight: bold;
    margin: 8px 0;
}

.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
    background: #eee;
    width: 50px;
    height: 50px;
}

.testimonials-swiper .swiper-button-next::after,
.testimonials-swiper .swiper-button-prev::after {
    color: #000;
    font-size: 20px;
}

/* Contact section */

#contact form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

#contact form input,
#contact form textarea {
    width: 100%;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    padding: 8px 16px;
    border: 1px solid #eee;
    background: #efefef;
    outline: none;
}

#contact form textarea {
    height: 160px;
    resize: none;
}

#contact .group {
    display: flex;
    gap: 12px;
}

#contact .btn {
    max-width: 200px;
    background: #333;
    color: #fff;
    padding: 12px;
    cursor: pointer;
    transition: all 300ms ease;
}

#contact .btn:hover {
    background: #000;
}

/* Footer */

footer {
    background: #efefef;
    color: #000;
    padding-top: 30px;
}

footer .logo {
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #000;
}

footer .sections {
    display: flex;
    gap: 50px;
    justify-content: space-between;
}

footer .section {
    flex: 1;
}

footer h3 {
    margin-top: 0;
}

footer ul {
    padding: 0;
    list-style: none;
}

footer ul li {
    margin: 12px 0;
}

footer ul li a {
    color: #000;
    text-decoration: none;
}

footer .socials {
    display: flex;
    gap: 24px;
}

footer .socials img {
    height: 36px;
    transition: 300ms ease;
}

footer .socials img:hover {
    transform: scale(1.1);
}

footer .copyright {
    background: #000;
    color: #fff;
    padding: 18px;
    margin-top: 30px;
    text-align: center;
}

/* Mobile Menu Items */

.mobile-menu-items {
    position: fixed;
    display: flex;
    align-items: center;
    z-index: 500;
    height: 100vh;
    width: 100%;
    background: #fff;
    flex-direction: column;
    gap: 30px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 300ms ease;
    overflow-y: auto;
}

.mobile-menu-items.active {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-items a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    display: block;
}

.mobile-menu-items .btn {
    color: #000;
    font-size: 16px;
}

.mobile-menu-items .close-icon {
    position: fixed;
    top: 10px;
    right: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
}

.mobile-menu-items .close-icon svg {
    width: 30px;
    color: #333;
}

nav .menu-icon {
    display: none;
}


/* CSS for BLOG */

/* Parent container to use flexbox for centering */
.parent-container {
    display: flex;
    justify-content: center;
    /* Center vertically */
    height: 70vh;
    /* Full viewport height for demonstration purposes */
}

/* Image container */
.img-container {
    width: 1024px;
    /* Set a specific width for the img-container */
    height: 1300px;
    /* Set a specific height for the img-container */
    position: relative;
    overflow: hidden;
    /* Hide overflow part of the image */
    margin-top: 74px;
}

/* Image styling */
.fit-image {
    width: 100%;
    /* Full width of the img-container */
    height: 100%;
    /* Full height of the img-container */
    object-fit: cover;
    /* Ensure the image covers the container without distortion */
    position: absolute;
    /* Position absolutely within the img-container */
    top: 50%;
    /* Center vertically */
    left: 50%;
    /* Center horizontally */
    transform: translate(-50%, -50%);
    /* Adjust positioning to be exactly centered */
}

/* Medarbetare */

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    max-width: 300px;
    flex: 1 1 300px;
}

.team-member img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.team-member h3 {
    margin: 15px 0 5px;
}

.team-member p {
    margin: 5px 0;
}


/* Side bar menu */

.sidenav {
    height: 100%;
    /* Full-height: remove this if you want "auto" height */
    width: 300px;
    /* Set the width of the sidebar */
    position: fixed;
    /* Fixed Sidebar (stay in place on scroll) */
    z-index: 1;
    /* Stay on top */
    top: 0;
    /* Stay at the top */
    right: 0;
    background-color: var(--yellow-color);
    /* Black */
    overflow-x: hidden;
    /* Disable horizontal scroll */
    padding-top: 20px;
}

.sidenav p {
    text-align: center;
    background-color: #efefef;
    border-left: 5px solid #333;
}

.main {
    margin-right: 300px;
    /* Same as the width of the sidebar */
    padding: 0px 10px;
}

/* Smartphone */

@media (max-width: 800px) {
    nav .menu-items {
        display: none;
    }

    nav .menu-icon {
        display: block;
        cursor: pointer;
    }

    nav .menu-icon svg {
        width: 30px;
        display: flex;
    }

    /* Hero section */

    .header-swiper .swiper-slide .slide-title {
        font-size: 30px;
    }

    .header-swiper .swiper-slide .content {
        padding-inline: 50px;
    }

    h2 {
        font-size: 30px;
    }

    section {
        padding-inline: 30px;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    #about .content {
        flex-direction: column;
    }

    #about .content img {
        height: 300px;
        object-fit: cover;
        width: 100vw;
    }

    #about .right {
        padding: 0 30px;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .testimonials-swiper .swiper-slide {
        padding-inline: 50px;
        padding-block: 0;
    }

    .testimonials-swiper .swiper-slide p {
        font-size: 18px;
    }

    .testimonials-swiper .swiper-button-next,
    .testimonials-swiper .swiper-button-prev {
        padding: 8px;
        width: 40px;
        height: 40px;
    }

    .testimonials-swiper .swiper-slide .content {
        padding-inline: 20px;
    }

    #contact .group {
        flex-direction: column;
    }

    footer .sections {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    footer .socials {
        justify-content: center;
    }

    /* BLOGG SECTION */
    .img-container {
        margin-top: 64px;
    }

    .container h3 {
        padding: 8px;
    }

    .container p {
        padding: 8px;
    }

    /* Accordion */
    .accordion-container {
        width: 100%;
        max-width: 600px;
        margin-top: 62px;
    }

    .accordion {
        display: flex;
        align-items: center;
        /* Center vertically */
        justify-content: center;
        /* Center horizontally */
        background-color: var(--yellow-color);
        color: #333;
        cursor: pointer;
        padding: 18px;
        width: 100%;
        border: none;
        outline: none;
        transition: 0.4s;
        font-size: 18px;
    }

    .accordion:after {
        margin-left: auto;
        /* Moves the icon to the far right */
    }

    .accordion.active:after {
        content: "\2212";
    }

    .panel {
        padding: 0 18px;
        background-color: var(--yellow-hover-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease-out;
    }

    .panel a {
        padding: 10px 25px;
        font-size: 15px;
    }

    .panel a:hover {
        background-color: var(--yellow-hover-color);
        color: #ed2243;
    }

    /* Navigation to other sites without panel */

    .accordion-link {
        display: flex;
        align-items: center;
        /* Center vertically */
        justify-content: center;
        /* Center horizontally */
        background-color: var(--yellow-color);
        color: #333;
        cursor: pointer;
        padding: 18px;
        width: 100%;
        border: none;
        outline: none;
        transition: 0.4s;
        font-size: 18px;
    }

    /* Medarbetare */
    .team-container {
        flex-direction: column;
        align-items: center;
    }

    /* Mentorprogrammet bild */
    .ledord img {
        width: 100%;
        height: auto;
    }

    .sidenav {
        height: 0;
        /* Full-height: remove this if you want "auto" height */
        width: 250px;
        /* Set the width of the sidebar */
        position: fixed;
        /* Fixed Sidebar (stay in place on scroll) */
        z-index: 1;
        /* Stay on top */
        top: 0;
        /* Stay at the top */
        right: 0;
        background-color: #111;
        /* Black */
        overflow-x: hidden;
        /* Disable horizontal scroll */
        padding-top: 20px;
    }

    .main {
        margin-right: 0px;
        /* Same as the width of the sidebar */
        padding: 0px 10px;
    }
}