/*
Theme Name: andEverywhere
Author: andEverywhere
Description: Stay awesome.
Version: 1.0
Text Domain:  hello-elementor
*/
.event-section .elementor-post__text {
  padding: 0 25px 24px;
}
.page-header {
  display: none;
}
.news-section{
    color: #222;
}
.news-section .elementor-post{
    display: grid!important;
    grid-template-columns: 2fr 1fr;
    background-color: #fff;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
    transition: box-shadow .3s;
    display: block;
    min-height: 300px;
    margin-bottom: 30px;
}
.news-section .elementor-post__thumbnail__link{
  height: 300px;
  margin-bottom: 0!important;
}
.news-section .elementor-post__thumbnail img{
  height: 100%!important;
  width: 100%!important;
  object-fit: cover;
}
.news-section .elementor-post__text{
  padding: 15px 20px;
}
.news-section .elementor-post__text .elementor-post__title{
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 5px 0;
  line-height: 1.2em;
}
.news-section .elementor-post__excerpt p{
  font-weight: 400;
  margin: 15px 0 15px;
  line-height: 1.5em;
  font-size:18px;
}
.news-section .elementor-post:nth-child(2) {
    grid-template-columns: 1fr 2fr;
}
.news-section .elementor-post:nth-child(2) .elementor-post__thumbnail__link{
  order: 1;
}
.news-section .elementor-post:hover{
    box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22);
}
footer h2{
    font-size: 22px;
    margin-top: 20px !important;
    line-height: 34px !important;
}
footer ul li a, footer p{
  font-size: 15px;
  line-height: 30px !important;
  font-weight: 400 !important;
  padding: 0 !important;
}
  .news-section  .elementor-post__thumbnail__link .elementor-post__thumbnail {
    height: 100%;
  }
footer .municipal img{
  width: 600px;
  margin-bottom: 20px;
}
@media screen and (max-width:1024px) {
  .elementor-grid-tablet-2 .elementor-grid {
    grid-template-columns: 1fr;
  }
  .news-section .elementor-post, .news-section .elementor-post:nth-child(2) {
    grid-template-columns: 1fr;
  }
  .news-section .elementor-post:nth-child(2) .elementor-post__thumbnail__link{
    order: 0;
  }
  footer .municipal img{
   width: 85%;
  }
}

/* Event Filters */
.event-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.event-filters__group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}
.event-filters__group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #495057;
}
.event-filters__group select {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    font-size: 15px;
}
.event-filters__submit {
    padding: 11px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}
.event-filters__submit:hover { 
    background: #005a87; 
}
.event-filters__reset {
    align-self: center;
    color: #dc3545;
    text-decoration: none;
    font-size: 14px;
    margin-left: 10px;
}
.event-filters__reset:hover {
    text-decoration: underline;
}

/* Event Tags (Pills) */
.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
.event-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f4fa;
    color: #0073aa;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #bce0f5;
}
.event-tag:hover { 
    background: #0073aa; 
    color: #fff; 
    border-color: #0073aa;
}

.event-read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    text-decoration: underline;
}

/* Make the search form layout horizontal */
#searchForm .d-flex.flex-outer {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
}

/* Make the input field take remaining space */
#searchForm .flex-fill {
    flex: 1 1 auto;
    min-width: 0;
}

/* Keep the right section inline */
#searchForm .search-form-right {
    flex: 0 0 auto;
}

/* Align the inner flex row */
#searchForm .search-form-right .d-flex {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 5px;
}

/* Hide the dropdown menu items text (Alla fält, Titel, etc.) */
#searchForm #searchFieldSelect {
    display: none !important;
}

/* Optional: keep the labels compact */
#searchForm .main-search-form-label {
    display: block;
    margin-bottom: 2px;
    font-size: 0.85em;
}

/* Ensure the input and button heights align */
#searchForm .form-control,
#searchForm .btn-searchBtn {
    height: 38px;
    box-sizing: border-box;
}

/* Remove extra margins that might break the row */
#searchForm .select-types,
#searchForm .btn-group {
    margin: 0;
}

nav.breadcrumbs .container{
	margin: 0 auto;
	width: 1200px;
}

.main #content.container{
	max-width: 1200px !important;
	padding: 20px 0px !important;
	margin: 0 auto;	
}

.status,
.container .record-nav,
#searchForm_lookfor_label,
#searchForm_lookfor_description{
    display: none !important;
}

/* Container wrapper */
#searchForm {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    border: 1px solid #ccc;
    background-color: #fff;
    margin: 0;
}

/* Input field styling */
#searchForm input#searchForm_lookfor {
    flex: 1;
    border: none !important;
    box-shadow: none !important;
    padding: 12px 15px !important;
    font-size: 20px;
    color: #555;
    background-color: transparent;
    outline: none;
	height: 55px;
}

#searchForm input#searchForm_lookfor::placeholder {
    color: #777;
}

/* Teal Square Button styling */
#searchForm button.btn-searchBtn {
    background-color: #007b8a; /* Teal color from the 1st image */
    border: none;
    color: white;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 0;
    margin: 0;
	height: 55px
}

#searchForm button.btn-searchBtn:hover {
    background-color: #005f6b;
}

/* SVG Icon styling */
#searchForm button.btn-searchBtn svg {
    display: block;
    stroke: #fff;
}

/* Accessibility helper class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

    #content .pl30.max-w460 {
        display: flex !important;
        flex-direction: column !important;
        float: none !important; /* Remove floats so it behaves */
        margin-top: 0 !important; 
        padding-top: 0 !important;
        margin-bottom: 0 !important; 
        padding-bottom: 0 !important;
    }

    /* 2. Move the form to the top (order: 1) */
    #content .pl30.max-w460 .mt20 {
        order: 1 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        min-height: 0 !important;
    }

    /* 3. Move the error message below the form (order: 2) */
    #content .flash-message.alert-danger {
        order: 2 !important;
        margin-top: 20px !important; /* Adds space between button and error */
        margin-bottom: 0 !important;
        max-width: 100% !important; 
        width: 100% !important;
        display: block !important;
    }

    /* 4. Remove extra spacing from the inner form groups */
    #content #standard,
    #content .form-login,
    #content .form-group.float-right {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        min-height: 0 !important;
    }

    /* 5. Force the header to stack above the wrapper */
    #content .lightbox-header {
        margin-bottom: 15px !important;
        margin-top: 0 !important;
    }

@media (max-width: 768px) {
	.main #content.container{
		 padding: 20px 30px !important;
	}
	nav.breadcrumbs .container{
		margin: 0 10px !important;
		width: auto;
	}
	
}

.single-event-meta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.single-event-location {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333;
}

.single-event-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
	margin-bottom: 10px;
}

.single-event-tags a.event-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
    transition: background 0.2s ease;
}

.single-event-tags a.event-tag:hover {
    background: #0056b3;
    color: #fff;
}
