/*
Theme Name: Bravo Theme
Template: hello-elementor
Author: Bravo Webbyrå
Version: 1.0.1602232423
Updated: 2020-10-09 10:33:43

*/


/* Layout Containers */
.main-div,
.member-card-list {
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    margin: 0 auto;
}

.main-div {
    display: flex;
    flex-direction: column;
}

.member-card-list {
    display: flex;
	justify-content: center;
    flex-wrap: wrap;
	gap: 20px;
	border-radius: 10px;
    padding: 20px;
	box-sizing: border-box;
}

/* Table Styling */
.member-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.member-table th,
.member-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

.member-table th {
    background-color: #9D022C;
    color: white;
}

.member-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Image Styling */
.member-table img,
.member-card img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.member-table img {
    max-width: 70px;
    height: 70px;
    border-radius: 50%;
}

.member-card img {
    max-width: 200px;
    border-radius: 25px !important;
	height: auto;
    object-fit: cover;
}

/* Card View */
.member-card {
    max-width: calc((100% - 80px) / 5); /* 5 cards per row with spacing */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
	gap:30px;
    background-color: #f9f9f9;
	box-shadow: 0px 0px 7.36px 0.64px #9D022C4d;
    border-radius: 8px;
    padding: 16px;
    box-sizing: border-box;
}

/* Search Form */
.medlem-search-form {
    margin-bottom: 20px;
}

.medlem-search-form input[type="text"],
.medlem-search-form button,
.medlem-search-form form input,
.medlem-search-form form button {
    padding: 10px;
    font-size: 16px;
}

.medlem-search-form input[type="text"] {
    width: 100%;
    max-width: 400px;
    margin-right: 10px;
}

.medlem-search-form button {
    padding: 10px 20px;
    cursor: pointer;
}
.form-div {
    max-width: 600px;
    width: 100%;
    align-self: start;
    display: flex;
    justify-content: flex-start;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #fff;
    padding: 0;
    max-width: 450px;
    width: 100%;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}

.search-form input[type="text"]:focus {
    border-color: #9D022C;
}

.search-button {
    width: 130px;
    background-color: transparent;
    color: #9D022C;
    border: 2px solid #9D022C;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-button:hover {
    background-color: #9D022C;
    color: #fff;
}

/* List Display (if used in search) */
.no-results {
    margin-top: 20px;
    font-style: italic;
    color: #666;
}

/* Medlem API Search Form - Card Style */
.medlem-api-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: #FFFDF9; /* Match site background (white) */
  border: 1px solid #e2e4e8; /* Neutral border */
  box-shadow: 0 4px 16px rgba(0,0,0,0.10); /* Stronger neutral shadow for emphasis */
  padding: 24px 20px 16px 20px;
  align-items: flex-end;
  max-width: 60%; /* Limit to 60% of container on large screens */
  margin: 0 auto 32px auto;
  margin-left: 0;
  margin-right: 0; /* Remove auto centering, align with content */
}
.medlem-api-search-form input[type="text"] {
  flex: 1 1 160px;
  min-width: 120px;
  padding: 10px 14px;
  border: 1px solid #cfd8dc;
  border-radius: 5px;
  font-size: 16px;
  background: #FFF;
  transition: border-color 0.2s;
}
.medlem-api-search-form input[type="text"]:focus {
  border-color: #9D022C; /* Use site accent color for focus */
  outline: none;
}
.medlem-api-search-form button[type="submit"] {
    width: 130px;
    background-color: transparent;
    color: #9D022C;
    border: 2px solid #9D022C;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}
.medlem-api-search-form button[type="submit"]:hover {
  background: #9D022C;
}
@media (max-width: 600px) {
  .medlem-api-search-form {
    max-width: 100%;
  }
  .medlem-api-search-form input[type="text"] {
    font-size: 11px;
    padding: 2px 6px;
    min-width: 60px;
    border-radius: 4px;
    height: 28px;
    line-height: 1.2;
  }
  .medlem-api-search-form button[type="submit"] {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    height: 28px;
    line-height: 1.2;
  }
}
@media (min-width: 601px) {
  .medlem-api-search-form {
    max-width: 60%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Paragraph reset */
p {
    margin: 0;
}

@media screen and (max-width: 1024px) {
	.member-card {
		max-width: calc(33% - 13.33px); 
	}
	
}
@media screen and (max-width: 768px) {
	.member-card {
		max-width: calc(50% - 20px);
	}
		.table-div {
		overflow-x: auto;
	}

	.table-div td {
		font-size: 14px;
		text-wrap: nowrap;
	}

	.table-div table.member-table {
		min-width: 600px;
	}
	
}
@media screen and (max-width: 480px) {
	.member-card {
		max-width: 100%; 
		width:100%;
	}
	.search-form{
		flex-direction:column ;
	}
}