
/* =================================
   MIB CUSTOM THEME
   Global Styles
================================= */

:root {
    --primary-color: #0b1e3a;
    --secondary-color: #12b7a6;
    --text-color: #333333;
    --light-color: #ffffff;
    --background-color: #f8fafc;
    --container-width: 1200px;
}

/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background: var(--light-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

button {
    cursor: pointer;
    font: inherit;
}

/* Container */

.container {
    width: min(
        var(--container-width),
        calc(100% - 40px)
    );
    margin-inline: auto;
}

/* Header */

.site-header {
    background: var(--light-color);
    border-bottom: 1px solid #eeeeee;
    position: relative;
    z-index: 100;
}

.header-container {
    min-height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.site-branding {
    font-size: 24px;
    font-weight: 700;
}

.custom-logo {
    max-height: 65px;
    width: auto;
}

/* Navigation */

.main-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.main-menu a {
    color: var(--primary-color);
    font-weight: 600;
}

.main-menu a:hover,
.main-menu .current-menu-item > a {
    color: var(--secondary-color);
}

/* Mobile Menu Button */

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 5px 0;
    background: var(--primary-color);
}

/* Main Content */

.site-main {
    min-height: 60vh;
}

.page-content,
.single-post {
    padding-block: 70px;
}

.page-header,
.post-header {
    margin-bottom: 30px;
}

.page-header h1,
.post-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
}

.entry-content > * {
    margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3 {
    color: var(--primary-color);
}

.entry-content ul,
.entry-content ol {
    padding-left: 25px;
}

/* Blog */

.blog-section {
    padding-block: 70px;
}

.blog-section > h1 {
    margin-bottom: 35px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    border: 1px solid #eeeeee;
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 20px;
}

.blog-card > :not(a) {
    margin-inline: 18px;
}

.blog-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin-bottom: 15px;
}

.blog-card h2 {
    font-size: 21px;
    margin-bottom: 10px;
}

/* Footer */

.site-footer {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 60px 0 25px;
}

.site-footer a {
    color: var(--light-color);
}

.footer-container {
    display: grid;
    gap: 30px;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,.2);
    padding-top: 20px;
    font-size: 14px;
}

/* Accessibility */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    background: #ffffff;
    color: #000000;
    padding: 10px;
    z-index: 1000;
}

.skip-link:focus {
    left: 10px;
}

/* Responsive */

@media (max-width: 768px) {

    .header-container {
        min-height: 70px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .primary-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 20px;
        border-top: 1px solid #eeeeee;
    }

    .primary-navigation.is-open {
        display: block;
    }

    .main-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .page-content,
    .single-post {
        padding-block: 40px;
    }

}
