/* Font */
body p {
  font-family: Roboto !important;
  font-size: 17px !important;
  font-weight: 400 !important;
}

.wp-block-details summary {
  font-family: Roboto !important;
  font-size: 17px !important;
  font-weight: 400 !important;
}

ul {
  font-family: Roboto !important;
  font-size: 17px !important;
  font-weight: 400 !important;
}

/* Thumbnail - foreningsregister */
.forening-logo {
    width: 100px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forening-logo-image {
    max-height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.forening-logo-placeholder {
    width: 100px;
    height: 80px;
    border-radius: 8px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}

/* forening singel */
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: none;
    margin-left: unset;
    margin-right: unset;
}

.forening-logo-singel {
    max-width: 250px;
    height: auto;
}

.foreningSingelGrid {
    width: 80%;
}

#foreningSingelGrid .singelOne {
    max-width: 330px;
    float: left;
}

#foreningSingelGrid .singelTwo {
    width: 290px;
    float: right;
}

.forening-registration,
.forening-edit-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.forening-registration h3,
.forening-edit-form h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.forening-registration label,
.forening-edit-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 17px;
}

.forening-registration input[type="text"],
.forening-registration input[type="email"],
.forening-registration input[type="password"],
.forening-edit-form input[type="text"],
.forening-edit-form input[type="email"],
.forening-edit-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.forening-edit-form textarea {
    resize: vertical;
    min-height: 100px;
}

.forening-registration input[type="submit"],
.forening-edit-form input[type="submit"] {
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.forening-registration input[type="submit"]:hover,
.forening-edit-form input[type="submit"]:hover {
    background: #005a87;
}

.foreningsregister-clear {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    text-decoration: underline;
}

.foreningsregister-clear:hover {
    color: #000;
}


.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.form-error-message {
    color: #b32d2e;
    font-size: 14px;
    margin-top: 6px;
}

/* Bilduppladdningsstyling */
.forening-image-upload {
    margin: 20px 0;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
}

.forening-image-preview {
    max-width: 200px;
    margin: 15px auto;
}

.forening-image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.forening-image-upload .remove-image {
    background: #dc3232;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
}

.forening-image-upload .remove-image:hover {
    background: #a00;
}

/* Ny/uppdattera föreninglänk */
.forening-links {
    margin: 20px 0;
}

.link-field {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.link-field input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.remove-link {
    background: #dc3232;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
}

.remove-link:hover {
    background: #a00;
}

#add-link:hover {
    background: #005a87;
}

/* Flera bilder styling */
.forening-multiple-images {
    margin: 20px 0;
}

.image-field {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    gap: 15px;
}

.image-preview {
    max-width: 150px;
}

.image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.image-upload-controls {
    flex: 1;
}

.image-upload-controls input[type="file"] {
    margin-bottom: 10px;
}

.image-upload-controls input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.remove-image-btn {
    background: #dc3232;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
}

.remove-image-btn:hover {
    background: #a00;
}

#add-another-image {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
}

#add-another-image:hover {
    background: #005a87;
}

.marked-for-deletion {
    border: 2px solid #dc3232 !important;
    background: #ffeaea !important;
}

.marked-for-deletion .image-preview {
    opacity: 0.5;
}

.delete-checkbox {
    display: block;
    margin: 10px 0;
    font-size: 14px;
}

.delete-checkbox input {
    margin-right: 5px;
}

/* Stadgar styling */
.stadgar-upload {
    margin: 10px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.stadgar-preview {
    margin-bottom: 15px;
}

.stadgar-preview a {
    background: #0073aa;
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 3px;
    display: inline-block;
}

.stadgar-preview a:hover {
    background: #005a87;
}

#stadgar-field {
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Dashboard styling */
.forening-dashboard {
    max-width: 80%;
    margin: 0 auto;
}

.dashboard-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.dashboard-card a {
    transition: all 0.2s ease;
}

.interest p {
  font-size: 15px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.contactRoutes p{
  padding-top: 10px;
  padding-bottom: 10px;
}

.dashboard-card a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* foreningsregister */
.foreningsregister-pagination {
    text-align: center;
    margin: 20px 0;
}

.foreningsregister-pagination .page-numbers {
    display: inline-flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.foreningsregister-pagination .page-numbers a,
.foreningsregister-pagination .page-numbers span {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #ddd;
    font-size: 14px;
}

.foreningsregister-pagination .page-numbers a:hover {
    background: #f0f0f0;
}

.foreningsregister-pagination .page-numbers .current {
    background: #333;
    color: #fff;
    border-color: #333;
    font-weight: bold;
}


.is-layout-constrained > .wp-block-pb-popup-button {
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.pb-open-button .wp-block-button__link {
  background-color: #315ab2;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
}
.forening-description--clamp {
    position: relative;
}

.forening-description--clamp p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.forening-read-more {
    font-size: 0.85rem;
    text-decoration: none;
}

.forening-read-more:hover {
    text-decoration: underline;
}

.ft-hidden {
    display: none !important;
}

.forening-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-top: 1rem;
}

.forening-gallery-hidden {
    display: none;
}

.forening-gallery-hidden.is-visible {
    display: block;
}

.forening-gallery-item img {
    width: 100%;
    height: 180px;          /* jämn höjd */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.forening-gallery-title {
    margin: 0.4rem 0 0 0;
    font-size: 0.85rem;
    color: var(--wp--preset--color--contrast-2);
    line-height: 1.3;
}

.forening-gallery-more {
    margin-top: 0.8rem;
    font-size: 0.95rem;
    color: var(--wp--preset--color--contrast-2);
    text-align: center;
}

.foreningsregister-type {
    margin-bottom: 10px;
    line-height: 1.5;
}

.foreningsregister-type label {
    display: inline-block;
    font-family: Roboto;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
}

.foreningsregister-search {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
  flex-wrap: wrap; /* gör att den bryts snyggt på mobil */
}

.foreningsregister-search input[type=search] {
  padding: 6px;
  border: none;
  margin-top: 8px;
  margin-right: 16px;
  font-size: 17px;
}

.foreningsregister-area {
  position: relative;
}

.foreningsregister-area select {
  padding: 6px 28px 6px 6px;
  border: none;
  margin-top: 8px;
  margin-right: 16px;
  font-size: 17px;
  background-color: #fff;
  cursor: pointer;
}

.foreningsregister-area::after {
  content: "▾";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-30%);
  pointer-events: none;
  font-size: 14px;
}

.required-star {
    color: red;
}
