/* Custom styles for the header */
.header-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    height: 150px; /* Fixed height for header on desktop */
    overflow: hidden;
}

.logo-container {
    background-color: white;
    height: 100%;
    width: 150px; /* Make it equal to height (150px) for square shape */
    flex: 0 0 150px; /* Don't grow or shrink, stay fixed at 150px */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 
   * Logo size calculation:
   * - Logo height = 2/3 of container height
   * - Top/bottom margins = 1/6 of container height each (1/3 total)
   * - Left/right margins = 2× the top/bottom margin (1/3 of container height each)
   */
.logo {
    height: 66.67%; /* 2/3 of header height */
    width: auto;
    margin-top: 16.67%; /* 1/6 of header height */
    margin-bottom: 16.67%; /* 1/6 of header height */
    margin-left: 0;
    margin-right: 0;
    display: block;
}

.green-container {
    background-color: #009B77;
    height: 100%;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    padding-left: 0;
    flex-grow: 1;
    flex-shrink: 1;
}

.dark-square {
    background-color: #151210;
    height: 100%;
    width: 150px; /* Make it equal to height (150px) for square shape */
    flex: 0 0 150px; /* Don't grow or shrink, stay fixed at 150px */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
}

.dark-square p {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9em;
    line-height: 1.7;
    font-weight: normal;
    color: white;
    text-align: left;
    border-top: 1.5px solid white;
    padding-top: 5px;
}

.pattern {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        height: 60px; /* Fixed height for header on mobile */
    }

    .logo-container {
        height: 100%; /* Will be 60px based on parent */
        /* width: 60px;  Make it square based on new height */
        flex: 1 0 60px; /* Fixed width/height for mobile */
    }

    .logo {
        height: 66.67%; /* Keep the 2/3 ratio */
        width: auto;
        margin: 16.67% 33.34%; /* Maintain vertical margins */
    }

    .green-container {
        height: 100%; /* Fixed height for green container on mobile */
    }

    .dark-square {
        height: 100%;
        flex: 1; /* Grow to fill remaining space */
        width: auto; /* No fixed width */
        padding: 5px; /* Smaller padding for mobile */
    }

    .dark-square p {
        font-size: 0.6em;
    }

    .pattern {
        height: 100%;
        width: auto;
    }
}