/* ------------------ Media Queries ------------------ */

/* Small devices (phones) */
@media (max-width: 800px) {
    .post {display: none;}
    .section_logo {height: 220px;}
    #col_1_mobile {background-color: var(--pm-red);}
    #col_2_mobile {background-color: var(--pm-green);}
    #col_3_mobile {background-color: var(--pm-blue);}
    .heading {padding: 10px;}
    .overlay {padding: 0;}
    #location_block {
        flex-basis: 860px;
        flex-direction: column;
        padding: 20px;
    }
    .location_div {
        justify-content: start;
        gap: 20px;
    }
    #map {min-height: 500px}
}

/* Medium devices (tablets, laptops) */
@media (min-width: 800px) { 
    .post {display: flex;}
    .section_logo {height: 160px;}
    #col_1_mobile {background-color: transparent;}
    #col_2_mobile {background-color: transparent;}
    #col_3_mobile {background-color: transparent;}
    .heading {padding: 0px;}
    .overlay {padding: 10px;}
    #location_block {
        padding: 40px;
    }
    #map {
        margin-top: 0;
        min-height: 500px
    }
}
 
/* Large devices (desktops) */
@media (min-width: 1400px) { 
    .post {display: flex;}
    .section_logo {height: 220px;}
    #col_1_mobile {background-color: transparent;}
    #col_2_mobile {background-color: transparent;}
    #col_3_mobile {background-color: transparent;}
    .overlay {padding: 10px;}
}

/* ------------------  Location Block ------------------ */
#location_block {
    display: flex;
    margin-top: 40px;
    background-color: #1E1C1C;
    border-radius: 10px;
    gap: 40px;
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1 1 400px;
}
.location_div {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    flex: 1 0 260px;
    max-width: 100%;
}
#location_block h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: white;
    margin: 0;
}
#location_block p {
    font-family: 'Merriweather', serif;
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 20px 0;
    color: white;
}
#location_block .text_group {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
}


/* ------------------  Map ------------------ */
#map {
    display: flex; 
    flex-direction: column;
    flex: 1 0 200px;
    max-width: 800px;
}

.tab-labels label {
    padding: 6px 18px;
    background: #3b3e3c;
    color: white;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    height: 66%;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        padding 0.2s ease;
}

.tabs input[type="radio"]:checked + label + .tab-content {
    display: block;
    border-radius: 8px;
}

/* hide radios */
#map input[type="radio"] {
    position: absolute;
    left: -9999px;
}

.tab-labels {
    display: flex;
    height: 36px;
}

.tab-panels {
    width: 100%;
    height: 100%;
}

.tab-content {
    display: none;
    width: 100%;
    height: 100%;
}

#tab1:checked ~ .tab-panels .tab1,
#tab2:checked ~ .tab-panels .tab2 {
    display: block;
}

#tab1:checked ~ .tab-labels label[for="tab1"],
#tab2:checked ~ .tab-labels label[for="tab2"] {
    background: #2e312f;
    transform: translateY(-6px);
    padding: 12px 18px 10px 18px;
    top: -200px;
}

.map-wrap {
    border-radius: 0 10px 10px 10px;
    overflow: hidden;   /* fix background clipping */
    height: 100%;
}

#map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0 8px 8px 8px;
}


/* ------------------  Article Section ------------------ */
article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: start;
    gap: 20px;
    background-color: #F4F4F4;
}

article h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    margin: 0;
    font-weight: 500;
    color: black;
}
article p {
    font-family: 'Merriweather', serif;
    font-size: 19px;
    margin: 0;
    font-weight: 400;
    color: black;
}

#flex_container {
    display: flex;
    flex-direction: column;
    margin-top: 0px;
    gap: 20px;
}

.grid_box {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    background-color: #1E1C1C;
    padding: 20px;
    border-radius: 10px;
}

.post {
    grid-area: 1 / 1 / 5 / 2;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    border-radius: 10px;
    margin-right: 20px;
}

.section_logo {
    width: auto;
    align-items: center;
    padding: 10px 22px;
    border-radius: 5%;
    margin: 5px;
}
.color_red {background-color: var(--pm-red);}
.color_green {background-color: var(--pm-green);}
.color_blue {background-color: var(--pm-blue);}

.heading {
    grid-area: 1 / 2 / 1 / 2;
    font-family: 'Roboto', sans-serif;
    font-size: 30px;
    font-weight: 500;
    color: white;
    margin: 0px 0 15px 0;
    border-radius: 10px;
}

.description {
    grid-area: 2 / 2 / 3 / 3;
}
.description p {
    font-family: 'Merriweather', serif;
    color: white;
    font-size: 17px;
    padding-bottom: 10px;
}

.stories_container {
    grid-area: 4 / 2 / 5 / 3;
    margin-top: 10px;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: row;
}

.story_card {
    width: 260px;
    height: 225px;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    overflow: hidden;
    background-color: #222222;
    box-sizing: border-box;
}

#industrial_stories div.story_card:hover {
    outline: 2px solid var(--pm-red);
}
#agriculture_stories div.story_card:hover {
    outline: 2px solid var(--pm-green);
}
#cultural_stories div.story_card:hover {
    outline: 2px solid var(--pm-blue);
}

.story_card_image {
    width: 100%;
    border-radius: 10px 10px 0 0;
}
.story_card h5 {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: white;
    margin: 0px 0 15px 0px;
}
.story_card .heading_small {
    font-size: 17px;;
}

.overlay {
    position: absolute;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45px;
    width: 100%;
    border-radius: 0 0 9px 9px;
    backdrop-filter: blur(6px) brightness(40%);
}