/*
Theme Name: Maik Theme
Author: Cameron
Version: 1.0
*/

/* 
  Layout
*/

body {
    margin: 0;
    padding: 0;
    background: #004b78;
    color: #004672;
    font-family: Georgia, "Times New Roman", serif;
}

.site {
    width: min(1280px, 92%);
    margin: 0 auto;
    background: #f7f7f7;
}

.container {
    display: flex;
    margin: 0 auto;
    padding: 20px 28px 30px 28px;
}

.content {
    flex: 1;
}

    .content h2 {
        margin-top: 0;
    }

    .content li {
        list-style: square;
    }


/*
   Homepage 
*/

.home-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

/*
   Page Layout en Sidebar
*/

.page-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.page-content {
    margin-top: 10px;
}

.sidebar-area {
    width: 355px;
    flex-shrink: 0;
}

.sidebarbox {
    margin: 0 0 25px 0;
    width: 100%;
    max-width: 355px;
    background-color: #EFF5E8;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    cursor: pointer;
}

    .sidebarbox i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80px;
        min-width: 80px;
        padding: 0;
        background-color: #41B5F0;
        color: #fff;
        font-size: 35px;
    }

    .sidebarbox:hover {
        box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.3);
        transform: translateY(-2px);
        transition: all 0.2s ease;
    }



.sidebartext {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

    .sidebartext h3 {
        margin: 0 0 12px 0;
    }

    .sidebartext p {
        margin: 0;
    }


/* 
   Header
*/

header {
    padding-bottom: 10px;
}

    header i {
        color: #41B5F0;
    }

    header h2 {
        margin: 0;
        padding: 18px 14px 14px 14px;
        color: #787878;
        font-size: 20px;
        line-height: 1.2;
        font-weight: bold;
    }

.headerbox {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-right: 16px;
    border-top: 8px solid #004b78;
    border-bottom: 8px solid #004b78;
    background: #fff;
}

    .headerbox img {
        display: block;
    }

    /* First image = logo */
    .headerbox img:first-child {
        width: 30%;
        max-width: 4000px;
        height: 270px;
        object-fit: contain;
        background: #fff;
    }

    /* Second image = banner image */
    .headerbox img:last-child {
        width: 70%;
        height: 220px;
        object-fit: cover;
    }


/*
   Navigation
*/

.menu {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

    .menu li {
        position: relative;
    }

    .menu li a {
        position: relative;
        display: block;
        padding: 10px 15px;
        text-decoration: none;
        color: #000;
    }

        .menu li a::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            display: none;
            width: 100%;
            height: 4px;
            background-color: rgb(0, 178, 0);
        }

        .menu li a:hover::before {
            display: block;
        }

/*
    menu for mobile users
*/

.nav-wrapper {
    position: relative;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-top img{
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #000;
    border-radius: 2px;
}
.menu {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

    .menu li {
        position: relative;
    }

    .menu li a {
        position: relative;
        display: block;
        padding: 10px 15px;
        text-decoration: none;
        color: #000;
    }

        .menu li a::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            display: none;
            width: 100%;
            height: 4px;
            background-color: rgb(0, 178, 0);
        }

        .menu li a:hover::before {
            display: block;
        }

/*
   Main Content
*/

.main-list hr {
    background-color: lightgray;
    border: 0.5px solid;
}

.main-list ul {
    padding-right: 40px;
}

.main-list li {
    position: relative;
    padding-left: 25px;
    list-style: none;
}

    /* 
    List style doesn't accept most icons, so I used ::before 
    */
    .main-list li::before {
        content: "✔";
        position: absolute;
        top: 0.2em;
        left: 0;
        color: #44B7EE;
        font-weight: bold;
    }

/*   
 News messages   
*/
.news-widget {
    list-style: none;
    max-width: 430px;
    font-family: Georgia, serif;
}

.news-tabs {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
}

.news-tab {
    border: none;
    border-top: 4px solid #44B7ee;
    border-right: 4px solid #e0e3d3;
    padding: 14px 20px;
    flex: 1;
    background: #59bdd9;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    box-sizing: border-box;
}

.news-tab:last-child {
    border-right: none;
}

    .news-tab.active, .news-tab:hover {
        background: #e0e3d3;
        color: #333;
    }

.news-content {
    background: #e0e3d3;
    padding: 20px;
}

.news-panel {
    display: none;
}

    .news-panel.active {
        display: block;
    }

    .news-panel h2 {
        font-size: 18px;
        margin-bottom: 15px;
        color: #111;
    }

.news-date {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #222;
}

    .news-panel p {
        margin-bottom: 10px;
        color: #222;
        line-height: 1.4;
    }

.read-more {
    color: #003d73;
    font-weight: bold;
    text-decoration: none;
    float: right;
}

    .read-more:hover {
        text-decoration: underline;
    }

.newsboxes {
    max-width: 450px;
    padding: 10px;
    background-color: #ECF3E3;
}

/*
   Footer
*/
.site-footer {
    margin-top: 30px;
    background: #f7f7f7;
    color: #004672;
}

.footer-main {
    padding: 20px 28px 30px 28px;
}

.footer-top-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-top-list > li {
    position: relative;
    margin: 0 0 35px 0;
    padding-left: 25px;
    list-style: none;
}

.footer-top-list > li::before {
    content: "✔";
    position: absolute;
    top: 0.2em;
    left: 0;
    color: #44B7EE;
    font-weight: bold;
}

.footer-top-list h3,
.footer-box h3 {
    margin: 0 0 8px 0;
    color: #004672;
}

.footer-top-list hr,
.footer-box hr {
    margin: 0 0 18px 0;
    border: none;
    border-top: 1px solid lightgray;
}

.listbottom {
    display: flex;
    gap: 45px;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin-top: 25px;
}

.footer-box {
    flex: 1;
    min-width: 220px;
    position: relative;
    padding-left: 25px;
}

.footer-box::before {
    content: "✔";
    position: absolute;
    top: 0.2em;
    left: 0;
    color: #44B7EE;
    font-weight: bold;
}

.footer-box p {
    margin: 0 0 6px 0;
}

/*
 facebook button 
*/
.social-card {
    color: #004672 !important;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 320px;
    padding: 14px 18px;
    border: 3px solid #004d7d;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-family: Arial, sans-serif;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.social-card img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgb(255, 255, 255);
}

.social-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.social-label {
    font-size: 13px;
    opacity: 0.9;
}

.social-name {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
}

.social-icon {
    font-size: 28px;
    font-weight: bold;
    opacity: 0.9;
}

/* bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
}

.footer-left,
.footer-right {
    flex: 1;
}

.footer-left a {
    color: #b8b8b8;
    text-decoration: none;
}

.footer-left a:hover {
    text-decoration: underline;
}

.footer-right {
    text-align: right;
}

.footer-menu-container {
    flex: 2;
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu a {
    text-decoration: none;
    color: #004672;
}

.footer-menu a:hover{
    text-decoration: underline;
}

/* mobile */
@media (max-width: 968px) {
    .footer-main {
        padding: 20px 16px;
    }

    .listbottom {
        flex-direction: column;
        gap: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-left,
    .footer-right,
    .footer-menu-container {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .footer-menu {
        flex-direction: column;
        gap: 10px;
    }

    .news-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .news-tab {
        width: 100%;
    }

    /* gets rid of the right border on every second tab */
    .news-tab:nth-child(2n) {
        border-right: none;
    }

    .header-top img{
        display: block;
        width: 100px;
        height: 60px;
    }
    
    .headerbox img:first-child {
        display: none;
    }

    .headerbox img:last-child {
        width: 75%;
        max-width: 600px;
        max-height: 160px;
        margin: 0 auto;
    }

    .headerbox {
        flex-direction: column;
        align-items: center;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-menu {
        display: none;
        width: 100%;
        margin-top: 10px;
        background: #fff;
        border: 1px solid #dcdcdc;
    }

    .main-menu.active {
        display: block;
    }

    .menu {
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
    }

        .menu li {
            width: 100%;
            border-bottom: 1px solid #e5e5e5;
        }

        .menu li a {
            padding: 14px 16px;
        }

            .menu li a::before {
                display: none;
            }

    .container,
    .page-layout,
    .home-layout,
    .listbottom {
        flex-direction: column !important;
    }

    .sidebar-area {
        display: none;
    }
}