/*
Theme Name: OceanWP Child
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme example child theme.
Author: Nick
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */

.fl-builder #content-wrap { 
	padding: 0;
	margin: 0;
	max-width: none;
	width: auto; 
}

div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-field-text .wpforms-field-label {
    display: block;
    font-weight: 700;
    font-size: 16px;
    float: none;
    line-height: 1.3;
    margin: 0 0 4px 0;
    padding: 0;
}

.fl-accordion-item{
	border-left: none !important;
	border-top: none !important;
	border-right: none !important;
	border-bottom-width: 1.5px !important;
	border-color: #000000 !important;
}

/* kalender */

.fl-accordion-button:focus, .fl-accordion-button-icon:focus, .fl-accordion-button-icon:active{
	outline-style: none;
}

.tribe-events-list-widget-events{
	float:left;
	margin-right: 5%;
	margin-top: 20px;
	width: 300px;
}

.tribe-events-widget-link > a{
	display: none;
}


.tribe-events-list-widget-events{

	
}

/* kalender animasjon */

.tribe-events-list-widget-events{
	transition: all 1s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 1s ease-in-out;
  -o-transition: all 1s ease-in-out;
  -ms-transition: all 1s ease-in-out;
}

.tribe-events-list-widget-events:hover{
		transform: translate(1em,0);
  -webkit-transform: translate(1em,0);
  -moz-transform: translate(1em,0);
  -o-transform: translate(1em,0);
  -ms-transform: translate(1em,0);
}

/*istyrelsen knapp */

.istyrelsenknapp{
	transition: all 1s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 1s ease-in-out;
  -o-transition: all 1s ease-in-out;
  -ms-transition: all 1s ease-in-out;
}
.istyrelsenknapp:hover{
	transform: translate(1em,0);
  -webkit-transform: translate(1em,0);
  -moz-transform: translate(1em,0);
  -o-transform: translate(1em,0);
  -ms-transform: translate(1em,0);
}

/*skjemastyling */
div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-field-text .wpforms-field-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    float: none;
    line-height: 1.3;
    margin: 0 0 4px 0;
    padding: 0;
}

div.wpforms-container-full .wpforms-form input[type=submit], 
div.wpforms-container-full .wpforms-form button[type=submit] {
    background-color: #eee; /* Grey background */
    border: 1px solid #ddd; /* Dark grey border */
    color: #333; /* Black text color */
    font-size: 1em; /* Size of text */
    padding: 10px 15px; /* Distance between text and border */
}

/*removes kalendar list numbers*/
#tribe-list-widget{list-style:none !important;}

/* Font load time */

@font-face{
	font-family: 'myWebFont';
	font-display: swap;
	src: url('myfont.woff2') format('woff2');
}

/* custom */

.post-section {
    width: 100%;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.post-container {
    width: 100%;
    max-width: 1200px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ag-card {
    position: relative;
}

.ag-card .image {
    border-radius: 15px;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.ag-card .image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform 0.2s;
}

.ag-card h3 {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 2.5rem;
}

.ag-card .ac-date {
    margin-top: 10px;
    margin-bottom: 5px;
}

.ag-card:hover .image img {
    transform: scale(1.05);
}

.ag-card .card-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0;
    height: 100%;
    width: 100%;
    text-decoration: none;
}

.paginationWrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 30px 0 15px;
}

.paginationWrapper .page-numbers {
    background-color: #f8f8f8;
    padding: 5px 10px;
    border-radius: 5px;
}

footer .fl-row-full-width .fl-row-content-wrap {
    margin-top: 0;
}

.event-post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.ag-event-card {
    position: relative;
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ag-event-card * {
    margin: 0;
    line-height: 1;
}

.ag-event-card .card-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    opacity: 0;
    height: 100%;
    width: 100%;
    text-decoration: none;
}

.ag-event-card h3 {
    font-size: 2.5rem;
}

.ag-event-card h3 a {
    color: #003836;
}

.ag-event-card h3 a:hover {
    color: #000;
}

.ag-event-card p {
    margin-bottom: 0;
}

.ag-button {
    display: flex;
}

.ag-button a {
    padding: 10px 30px;
    width: min-content;
    background-color: #003836;
    border-radius: 7.5px;
    white-space: nowrap;
    box-sizing: border-box;
    color: #fff;
    font-weight: 500;
}

.ag-button a:hover {
    color: #fff;
    background-color: #000;
}

.ac-filter-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin: 30px 0;
}

.ac-filter-form .ac-input-div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ac-filter-form .ac-input-div label {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.ac-filter-form .ac-date-input {
    max-width: 200px;
    border-radius: 7.5px;
    border: 1px solid #000;
}

.ac-filter-form .ac-submit {
    background-color: #003836;
    color: #fff;
    border-radius: 7.5px;
}

.ac-filter-form .ac-submit:hover {
    background-color: #000;
}

.ac-categoryContainer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

@media (max-width: 868px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-post-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 668px) {
    .post-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.newsletterWrapper {
    padding: 30px;
    background-color: #f8f8f8;
    border-radius: 15px;
    margin: 30px 0;
}