:root {
    --main: #032267;
    --government: #032267;
    --parliament: #373151;
    --opposition: #006548;

    --conservative: #0087DC;
    --labour: #E4003B;
    --libdem: #FF6400;
    --reform: #12B6CF;

    --historic: #545454;
    --electoral: #2491b0;
    --la: #545454;

    --offwhite: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--offwhite);
}

header {
    background: var(--main);

    height: 150px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-title {
    text-align: center;
    color: white;
}

.header-title h1 {
    font-size: 3rem;
    font-weight: 800;
}

.header-title p {
    font-size: 1rem;
    font-weight: 400;
}

.header-btn {
    position: absolute;

    border: 2px solid rgba(245,245,245,0.85);
    color: rgba(245,245,245,0.85);

    text-decoration: none;

    padding: 12px 24px;

    transition: 0.25s;

    font-weight: 600;
}

.header-btn:hover {
    border-color: white;
    color: white;
}

.socials-btn {
    left: 50px;

    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
}

.socials-btn img {
    width: 28px;
    height: 28px;

    filter: brightness(0) invert(0.92);
    transition: 0.25s;
}

.socials-btn:hover img {
    filter: brightness(0) invert(1);
}

.join-btn {
    right: 50px;
}

main {
    background: var(--offwhite);
}

.content-wrapper {
    width: 60%;
    margin: 0 auto;

    background: white;

    padding: 40px;

    box-shadow:
        -6px 0 12px rgba(0,0,0,0.08),
         6px 0 12px rgba(0,0,0,0.08);
}

.tiles-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.government-tile {
    width: 100%;
}

.gov-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.large-tile {
    display: block;

    overflow: hidden;

    border-radius: 12px;

    transition: 0.25s;

    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.large-tile:hover {
    transform: translateY(-6px);
}

.large-tile img {
    display: block;

    width: 100%;
    height: auto;
}

/* SUBHEADINGS */

.section-group {
    margin-top: 60px;
}

.section-group h2 {
    text-align: center;

    color: #7a7a7a;

    font-size: 1rem;

    font-weight: 600;

    letter-spacing: 3px;

    margin-bottom: 25px;
}

/* PARTIES */

.party-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

/* SYSTEMS */

.systems-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.electoral-full {
    grid-column: span 2;
}

/* FOOTER */

footer {
    background: var(--main);

    color: white;

    text-align: center;

    padding: 25px;
}

/* MOBILE */

@media (max-width: 900px) {

    .content-wrapper {
        width: 95%;
        padding: 20px;
    }

    .party-grid,
    .systems-grid {
        grid-template-columns: 1fr;
    }

    .electoral-full {
        grid-column: auto;
    }

    header {
        height: auto;
        padding: 25px;
    }

    .socials-btn,
    .join-btn {
        position: static;
        margin: 10px;
    }
	.gov-secondary-grid {
    grid-template-columns: 1fr;
	}
}