/* General preset */

:root {
    --highlight: #E87A00;
    --container: #D89C60;
    --secondary: #045174;
    --primary: #001F3D;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Barlow", 'Lato', Arial, sans-serif;
    font-size: 1.1rem
}

html {
    scroll-padding-top: 50px;
}

body {
    line-height: 1.6;
}

h1,
h2,
h3 {
    text-align: center;
}

h2 {
    font-family: "Iceberg", serif;
}

a {
    text-decoration: none !important;
}


/* navbar style */

nav {
    background-color: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    height: 60px;
    top: 0;
    z-index: 100;
}

nav h1 {
    font-family: "Iceberg", serif;
    margin-top: 7px;
}

nav ul {
    list-style: none;
    display: flex;
    margin-top: 10px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

nav .btn {
    text-decoration: none;
    color: white;
}


/* Hamburger Icon */

.menu-icon {
    display: none;
    cursor: pointer;
}


/* Section styles */


/* Generic setup that cay be override by more specific CSS selectors */

section {
    padding: 50px 20px;
}

section:nth-child(even) {
    background-color: #f4f4f4;
}

section h2 {
    margin-bottom: 20px;
    font-size: 2em;
    color: #333;
}

.card {
    border: none !important;
    padding: 10px;
}

.card .date {
    font-size: small;
    color: gray;
}

.card .card-text {
    color: var(--primary);
}

button,
.btn {
    width: fit-content;
    background: transparent;
}


/* Footer */

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

@media (max-width: 760px) {
    .menu-icon {
        display: block;
    }
    nav ul {
        display: none;
        position: absolute;
        top: 60px;
        right: 0px;
    }
    nav li {
        background: var(--primary);
        padding: 10px 20px;
    }
    nav ul.active {
        display: block;
    }
    #menu-icon i {
        display: none;
    }
    #menu-icon i.active {
        display: block;
    }
}