/* =========================================
   OM CIBUS – INTRO
   ========================================= */

.om-cibus-intro {
    max-width: 950px;
    margin: 60px auto 80px;
    padding: 0 40px;

    text-align: center;
    color: white;
}

.section-label {
    margin: 0 0 10px;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    opacity: 0.75;
}

.om-cibus-intro h1 {
    margin: 0 0 30px;

    font-size: 48px;
    font-weight: 700;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text p {
    margin: 0 0 20px;

    font-size: 18px;
    line-height: 1.65;
}

.intro-text p:last-child {
    margin-bottom: 0;
}


/* =========================================
   GENERELLE SEKSJONER
   ========================================= */

.om-section {
    max-width: 1250px;
    margin: 0 auto 90px;
    padding: 0 50px;
}

.om-section > h2 {
    margin: 0 0 30px;

    color: white;

    font-size: 36px;
    font-weight: 700;
}


/* =========================================
   HOVEDSTYRET
   ========================================= */

.main-board-card {
    display: grid;
    grid-template-columns: 1fr 1.15fr;

    align-items: stretch;

    overflow: hidden;

    background-color: #f7f7f7;

    border-radius: 28px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.main-board-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}


.main-board-text {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 50px;
}

.main-board-text p {
    margin: 0 0 28px;

    color: #333;

    font-size: 18px;
    line-height: 1.6;
}


/* Knapp */

.om-button {
    align-self: center;

    color: var(--main-color);

    font-size: 18px;
    font-weight: 700;

    text-decoration: none;

    transition: transform 0.15s ease;
}

.om-button:hover {
    transform: translateX(4px);
}


/* Styrebilde */

.main-board-image {
    min-height: 420px;
}

.main-board-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


/* =========================================
   SEKSJONSOVERSKRIFTER
   ========================================= */

.section-heading {
    max-width: 700px;

    margin: 0 auto 35px;

    text-align: center;
    color: white;
}

.section-heading h2 {
    margin: 0 0 12px;

    font-size: 38px;
    font-weight: 700;
}

.section-heading > p:last-child {
    margin: 0;

    font-size: 18px;
    line-height: 1.5;
}


/* =========================================
   KOMITEER
   ========================================= */

.committee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.committee-card {
    background-color: #f7f7f7;

    padding: 38px 30px;

    border-radius: 26px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.committee-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}


/* Ikon */

.committee-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 25px;

    background-color: var(--main-color);

    border-radius: 16px;

    color: white;

    font-size: 23px;
}


.committee-card h3 {
    margin: 0 0 15px;

    color: #111;

    font-size: 25px;
    font-weight: 700;
}

.committee-card p {
    margin: 0;

    color: #444;

    font-size: 17px;
    line-height: 1.55;
}


/* =========================================
   UNDERGRUPPER
   ========================================= */

.groups-section {
    margin-bottom: 100px;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/* Kort */

.group-card {
    overflow: hidden;

    background-color: #f7f7f7;

    border-radius: 26px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.group-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}


/* Farget topp */

.group-top {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 190px;

    color: white;

    font-size: 34px;
    font-weight: 800;
    letter-spacing: 3px;
}


/* Litt forskjellig uttrykk på gruppene */

.actio-top {
    background-color: #315a42;
}

.sybus-top {
    background-color: #55745e;
}

.cervisia-top {
    background-color: #294b37;
}


/* Informasjon */

.group-info {
    padding: 28px 30px 32px;
}

.group-type {
    margin: 0 0 7px;

    color: var(--main-color);

    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.group-info h3 {
    margin: 0 0 14px;

    color: #111;

    font-size: 27px;
    font-weight: 700;
}

.group-info > p:last-child {
    margin: 0;

    color: #444;

    font-size: 17px;
    line-height: 1.55;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1000px) {

    .om-section {
        padding: 0 30px;
    }


    /* Hovedstyret */

    .main-board-card {
        grid-template-columns: 1fr 1fr;
    }

    .main-board-text {
        padding: 35px;
    }

    .main-board-image {
        min-height: 380px;
    }


    /* Komiteer */

    .committee-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* Undergrupper */

    .groups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================
   MOBIL
   ========================================= */

@media (max-width: 700px) {

    /* Intro */

    .om-cibus-intro {
        margin: 40px auto 55px;

        padding: 0 25px;
    }

    .om-cibus-intro h1 {
        font-size: 38px;

        margin-bottom: 25px;
    }

    .intro-text p {
        font-size: 17px;

        line-height: 1.55;
    }


    /* Generelt */

    .om-section {
        margin-bottom: 60px;

        padding: 0 20px;
    }

    .om-section > h2 {
        font-size: 31px;

        margin-bottom: 22px;
    }


    /* Hovedstyret */

    .main-board-card {
        display: flex;
        flex-direction: column;
    }

    .main-board-image {
        order: 1;

        width: 100%;
        min-height: 0;
        height: 300px;
    }

    .main-board-text {
        order: 2;

        padding: 28px 25px 32px;
    }

    .main-board-text p {
        font-size: 16px;
    }


    /* Overskrifter */

    .section-heading {
        margin-bottom: 25px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .section-heading > p:last-child {
        font-size: 16px;
    }


    /* Komiteer */

    .committee-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .committee-card {
        padding: 30px 25px;
    }

    .committee-card h3 {
        font-size: 23px;
    }

    .committee-card p {
        font-size: 16px;
    }


    /* Undergrupper */

    .groups-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .group-top {
        height: 160px;

        font-size: 30px;
    }

    .group-info {
        padding: 25px;
    }

    .group-info h3 {
        font-size: 25px;
    }

    .group-info > p:last-child {
        font-size: 16px;
    }

}

.sybus-top {
    padding: 0;
    overflow: hidden;
}

.sybus-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   KONTORET
   ========================================= */

#kontoret-section {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;

    max-width: 1250px;
    margin: 80px auto 100px;
    padding: 0 50px;
}


/* VIDEO */

.kontoret-video {
    min-height: 520px;

    overflow: hidden;

    border-radius: 30px 0 0 30px;

    background-color: #111;
}

.kontoret-video video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* TEKST */

.kontoret-info {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 60px;

    box-sizing: border-box;

    background-color: #f7f7f7;

    border-radius: 0 30px 30px 0;
}

.kontoret-label {
    margin: 0 0 10px;

    color: var(--main-color);

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 2px;
}

.kontoret-info h2 {
    margin: 0 0 10px;

    color: #111;

    font-size: 42px;
    font-weight: 700;
}

.kontoret-location {
    margin: 0 0 25px;

    color: #333;

    font-size: 20px;
    font-weight: 600;
}

.kontoret-info > p:not(.kontoret-label):not(.kontoret-location) {
    margin: 0 0 18px;

    color: #444;

    font-size: 17px;
    line-height: 1.6;
}


/* FINN KONTORET */

.kontoret-button {
    align-self: flex-start;

    margin-top: 10px;

    color: var(--main-color);

    font-size: 18px;
    font-weight: 700;

    text-decoration: none;

    transition: transform 0.15s ease;
}

.kontoret-button:hover {
    transform: translateX(4px);
}


/* =========================================
   KONTORET
   ========================================= */

#kontoret-section {
    display: grid;
    grid-template-columns: 1fr 1fr;

    max-width: 1100px;
    height: 430px;

    margin: 60px auto 80px;
    padding: 0 50px;
}


/* VIDEO */

.kontoret-video {
    height: 430px;

    overflow: hidden;

    border-radius: 28px 0 0 28px;

    background-color: #111;
}

.kontoret-video video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* TEKST */

.kontoret-info {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 40px 45px;

    box-sizing: border-box;

    background-color: #f7f7f7;

    border-radius: 0 28px 28px 0;

    text-align: center;
}

.kontoret-label {
    margin: 0 0 8px;

    color: var(--main-color);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.kontoret-info h2 {
    margin: 0 0 8px;

    color: #111;

    font-size: 36px;
    font-weight: 700;
}

.kontoret-location {
    margin: 0 0 20px;

    color: #333;

    font-size: 18px;
    font-weight: 600;
}

.kontoret-info > p:not(.kontoret-label):not(.kontoret-location) {
    margin: 0 0 14px;

    color: #444;

    font-size: 15px;
    line-height: 1.5;
}


/* FINN KONTORET */

.kontoret-button {
    align-self: center;

    margin-top: 5px;

    color: var(--main-color);

    font-size: 16px;
    font-weight: 700;

    text-decoration: none;

    transition: transform 0.15s ease;
}

.kontoret-button:hover {
    transform: translateX(4px);
}


/* =========================================
   MOBIL
   ========================================= */

@media (max-width: 750px) {

    #kontoret-section {
        grid-template-columns: 1fr;

        height: auto;

        margin: 45px auto 60px;
        padding: 0 20px;
    }

    .kontoret-video {
        height: 350px;

        border-radius: 24px 24px 0 0;
    }

    .kontoret-info {
        padding: 32px 25px;

        border-radius: 0 0 24px 24px;
    }

    .kontoret-info h2 {
        font-size: 30px;
    }

}