/**
 * Golf Handicap & Slope frontend stilark
 *
 * @package Golf-Handicap-Slope
 * @since 2.1.0
 */

/* Grunnleggende variabler */
:root {
  --primary-color: #2c5e2e;
  --secondary-color: #3d8b40;
  --light-color: #f5f7f5;
  --accent-color: #f0f7ee;
  --dark-color: #1a3a1c;
  --text-color: #333;
  --border-radius: 10px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* Generelle stiler */
.entry-content {
    line-height: 0.8;
}

.golf-handicap-slope {
    margin: 0;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.golf-handicap-slope-title {
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.golf-handicap-slope-container {
    max-width: 100%;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    font-size: 0; /* Fjerner whitespace mellom inline-block elementer */
}

/* Kalkulator-stiler */
.golf-handicap-slope.handicap-calculator {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem 2.5rem 2.5rem 2.5rem;
    margin: 40px auto 40px auto;
    max-width: 650px;
    transition: var(--transition);
}

.golf-handicap-slope-calculator-header h2.golf-handicap-slope-title {
    color: var(--primary-color);
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 600;
}

.calculator-description {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.golf-handicap-slope-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e0e6e0;
}

.golf-handicap-slope-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.golf-handicap-slope-field p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.golf-handicap-slope-field input[type="text"],
.golf-handicap-slope-field select {
    border: 1.5px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 0.6rem 1rem;
    font-size: 1.1rem;
    transition: var(--transition);
    background: white;
    color: var(--text-color);
    box-shadow: none;
    width: 100%;
}

.golf-handicap-slope-field input[type="text"]:focus,
.golf-handicap-slope-field select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(61,139,64,0.10);
}

@media (max-width: 600px) {
    .golf-handicap-slope.handicap-calculator {
        padding: 1.5rem 1rem 2rem 1rem;
    }
    .golf-handicap-slope-form {
        gap: 1rem;
    }
    .golf-handicap-slope-field {
        margin-bottom: 0.5rem;
    }
}

.golf-handicap-slope-calculator-header {
    margin-bottom: 0;
    text-align: center;
}

.golf-handicap-slope-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.calc-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    fill: var(--primary-color);
}

.calculator-description {
    font-size: 16px;
    color: #666;
    margin: 0 0 10px 0;
}

.golf-handicap-slope .desktop-calculator {
    display: flex;
    margin-bottom: 20px;
}

.golf-handicap-slope .mobile-calculator {
    display: none;
    margin-bottom: 20px;
    width: 100%;
}

.golf-handicap-slope-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.golf-handicap-slope-col {
    flex: 1;
    padding: 0 10px;
    min-width: 150px;
}

.golf-handicap-slope-col:first-child {
    padding-left: 0;
}

.golf-handicap-slope-col:last-child {
    padding-right: 0;
}

.golf-handicap-slope label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.golf-handicap-slope-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.golf-handicap-slope-field {
    position: relative;
}

.golf-handicap-slope .field-label {
    display: block !important;
    font-weight: 600 !important;
    color: var(--dark-color) !important;
    margin-bottom: 8px !important;
    font-size: 15px !important;
    visibility: visible !important;
    line-height: 1.5 !important;
}

.field-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.field-input-container input,
.field-input-container select {
    flex: 1;
    padding-right: 15px; /* Reduserer høyre padding siden ikonene er fjernet */
}

.field-input-container .field-icon {
    position: absolute;
    right: 10px;
    width: 18px;
    height: 18px;
    fill: var(--primary-color);
    display: none; /* Skjuler ikonene */
}

.golf-handicap-slope input,
.golf-handicap-slope select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.golf-handicap-slope input:focus,
.golf-handicap-slope select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 139, 64, 0.2);
    outline: none;
}

.golf-handicap-slope-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    width: auto;
    min-width: 120px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(41, 128, 185, 0.2);
}

.golf-handicap-slope-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(41, 128, 185, 0.3);
}

.golf-handicap-slope-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    gap: 15px;
}

.golf-handicap-slope-inline-result {
    flex: 1;
    padding: 10px 15px;
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    border: 1px solid #e0e6e0;
}

.golf-handicap-slope-inline-result .pre-calculation {
    display: block;
    color: #666;
    font-style: italic;
}

.golf-handicap-slope-inline-result .post-calculation {
    display: none;
    font-weight: 500;
}

.golf-handicap-slope-inline-result.has-result .pre-calculation {
    display: none;
}

.golf-handicap-slope-inline-result.has-result .post-calculation {
    display: block;
}

.button-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    fill: white;
}

.golf-handicap-slope-button-field {
    margin-top: 10px;
}

.golf-handicap-slope-handicap-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.golf-handicap-slope-handicap-table th,
.golf-handicap-slope-handicap-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: left;
}

.golf-handicap-slope-handicap-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.golf-handicap-slope-result {
    display: none;
    margin-top: 25px;
    padding: 20px;
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--box-shadow);
}

.golf-handicap-slope-result-inner {
    display: flex;
    align-items: center;
}

.result-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    fill: var(--primary-color);
}

.result-text {
    flex: 1;
}

.result-text p {
    margin: 0 0 5px 0;
    color: #555;
    font-weight: 500;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Responsiv layout for kalkulatoren */
@media (max-width: 767px) {
    .golf-handicap-slope .desktop-calculator {
        display: none;
    }
    
    .golf-handicap-slope .mobile-calculator {
        display: table;
    }
    
    .golf-handicap-slope-row {
        display: table-row;
    }
    
    .golf-handicap-slope-col {
        display: table-cell;
        padding: 5px;
    }
}

/* Tabellstiler */
.golf-handicap-slope-tables {
    margin: 0 0 20px 0;
    font-size: 16px;
    max-width: 100%;
    overflow-x: auto;
}

.golf-handicap-slope-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
}

.golf-handicap-slope-table th,
.golf-handicap-slope-table td {
    padding: 10px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.golf-handicap-slope-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.golf-handicap-slope-table tr:nth-child(even) {
    background-color: var(--light-color);
}

.golf-handicap-slope-table tr:hover {
    background-color: var(--accent-color);
}

/* Responsive mobile/desktop toggle */
@media (min-width: 769px) {
    .handicap-calculator .mobile-calculator {
        display: none !important;
    }
    .handicap-calculator .desktop-calculator {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .handicap-calculator .desktop-calculator {
        display: none !important;
    }
    .handicap-calculator .mobile-calculator {
        display: block !important;
    }
}



.golf-handicap-slope-field input[type="text"]:focus,
.golf-handicap-slope-field select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(61,139,64,0.10);
}

@media (max-width: 600px) {
    .golf-handicap-slope.handicap-calculator {
        padding: 1.5rem 1rem 2rem 1rem;
    }
    .golf-handicap-slope-form {
        gap: 1rem;
    }
    .golf-handicap-slope-field {
        margin-bottom: 0.5rem;
    }
}

.golf-handicap-slope-calculator-header {
    margin-bottom: 0;
    text-align: center;
}

.golf-handicap-slope-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.calc-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    fill: var(--primary-color);
}

.calculator-description {
    font-size: 16px;
    color: #666;
    margin: 0 0 10px 0;
}

.golf-handicap-slope .desktop-calculator {
    display: flex;
    margin-bottom: 20px;
}

.golf-handicap-slope .mobile-calculator {
    display: none;
    margin-bottom: 20px;
    width: 100%;
}

.golf-handicap-slope-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.golf-handicap-slope-col {
    flex: 1;
    padding: 0 10px;
    min-width: 150px;
}

.golf-handicap-slope-col:first-child {
    padding-left: 0;
}

.golf-handicap-slope-col:last-child {
    padding-right: 0;
}

.golf-handicap-slope label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.golf-handicap-slope-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.golf-handicap-slope-field {
    position: relative;
}

.golf-handicap-slope .field-label {
    display: block !important;
    font-weight: 600 !important;
    color: var(--dark-color) !important;
    margin-bottom: 8px !important;
    font-size: 15px !important;
    visibility: visible !important;
    line-height: 1.5 !important;
}

.field-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.field-input-container input,
.field-input-container select {
    flex: 1;
    padding-right: 15px; /* Reduserer høyre padding siden ikonene er fjernet */
}

.field-input-container .field-icon {
    position: absolute;
    right: 10px;
    width: 18px;
    height: 18px;
    fill: var(--primary-color);
    display: none; /* Skjuler ikonene */
}

.golf-handicap-slope input,
.golf-handicap-slope select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.golf-handicap-slope input:focus,
.golf-handicap-slope select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 139, 64, 0.2);
    outline: none;
}

.golf-handicap-slope-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    width: auto;
    min-width: 120px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(41, 128, 185, 0.2);
}

.golf-handicap-slope-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(41, 128, 185, 0.3);
}

.golf-handicap-slope-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    gap: 15px;
}

.golf-handicap-slope-inline-result {
    flex: 1;
    padding: 10px 15px;
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    border: 1px solid #e0e6e0;
}

.golf-handicap-slope-inline-result .pre-calculation {
    display: block;
    color: #666;
    font-style: italic;
}

.golf-handicap-slope-inline-result .post-calculation {
    display: none;
    font-weight: 500;
}

.golf-handicap-slope-inline-result.has-result .pre-calculation {
    display: none;
}

.golf-handicap-slope-inline-result.has-result .post-calculation {
    display: block;
}

.button-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    fill: white;
}

.golf-handicap-slope-button-field {
    margin-top: 10px;
}

.golf-handicap-slope-handicap-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.golf-handicap-slope-handicap-table th,
.golf-handicap-slope-handicap-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: left;
}

.golf-handicap-slope-handicap-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.golf-handicap-slope-result {
    display: none;
    margin-top: 25px;
    padding: 20px;
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--box-shadow);
}

.golf-handicap-slope-result-inner {
    display: flex;
    align-items: center;
}

.result-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    fill: var(--primary-color);
}

.result-text {
    flex: 1;
}

.result-text p {
    margin: 0 0 5px 0;
    color: #555;
    font-weight: 500;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Responsiv layout for kalkulatoren */
@media (max-width: 767px) {
    .golf-handicap-slope .desktop-calculator {
        display: none;
    }
    
    .golf-handicap-slope .mobile-calculator {
        display: table;
    }
    
    .golf-handicap-slope-row {
        display: table-row;
    }
    
    .golf-handicap-slope-col {
        display: table-cell;
        padding: 5px;
    }
}

/* Tabellstiler */
.golf-handicap-slope-tables {
    margin: 0 0 20px 0;
    font-size: 16px;
    max-width: 100%;
    overflow: hidden;
    clear: both;
}

.golf-handicap-slope-tables h2 {
    font-weight: 500;
    color: var(--primary-color);
}

.golf-handicap-slope-men-tables,
.golf-handicap-slope-women-tables {
    width: 100%;
    float: left;
    margin-bottom: 40px;
    font-size: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.golf-handicap-slope-tee-row {
    background: white;
    border-radius: var(--border-radius);
    overflow: visible; /* Endret fra hidden for å unngå at innhold kuttes */
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: row;
    margin-bottom: 25px;
    border: none;
    padding: 0;
    min-height: 60px; /* Lagt til minimum høyde */
}

.golf-handicap-slope-tee-row::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent var(--secondary-color) transparent transparent;
    transition: var(--transition);
}

.golf-handicap-slope-tee-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.golf-handicap-slope-tee-row:hover::after {
    border-width: 0 60px 60px 0;
}

/* Når tabellen er synlig, fjern mellomrom og endre kantene */
.golf-handicap-slope-tee-row.has-visible-table {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}

.golf-handicap-slope-tee-info {
    background-color: var(--primary-color);
    color: white !important;
    padding: 15px 20px;
    flex: 0 0 200px;
    display: flex;
    align-items: center;
}

.golf-handicap-slope-tee-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: normal;
}

.golf-handicap-slope-tee-center {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    justify-content: space-around; /* Endret fra space-between for bedre mellomrom */
    align-items: center;
    background-color: #f5f7f5; /* Lagt til bakgrunnsfarge for bedre synlighet */
    border-radius: 0; /* Fjernet avrunding for å matche designet */
    visibility: visible !important; /* Sikre at elementet er synlig */
    opacity: 1 !important; /* Sikre at elementet er synlig */
    min-height: 60px; /* Sikre minimum høyde */
    overflow: visible; /* Unngå at innhold kuttes */
    position: relative; /* For å sikre korrekt posisjonering */
    z-index: 1; /* Sikre at elementet vises over andre elementer */
}

/* Stiler for innholdet i tee-center */
.golf-handicap-slope-tee-center div {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 5px 0;
    display: block;
    visibility: visible !important;
    opacity: 1 !important;
}

.golf-handicap-slope-tee-actions {
    margin-left: 20px;
    margin-right: 60px; /* Legger til høyre margin for å unngå den skrå kanten */
    display: flex;
    align-items: center;
}

.golf-handicap-slope-tee-actions .golf-handicap-slope-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(41, 128, 185, 0.2);
    white-space: nowrap;
    margin-top: 0;
    width: auto;
    font-size: 0.9rem;
}

.golf-handicap-slope-tee-actions .golf-handicap-slope-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(41, 128, 185, 0.3);
}

.golf-handicap-slope-table-wrapper {
    margin: 0 0 20px 0;
    padding: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    width: 100%;
    box-sizing: border-box;
    clear: both;
    box-shadow: var(--box-shadow);
}

.golf-handicap-slope-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    border: 1px solid #ddd;
}

.golf-handicap-slope-table th,
.golf-handicap-slope-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: left;
}

.golf-handicap-slope-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.golf-handicap-slope-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover-effekt for tabellrader */
.golf-handicap-slope-table tbody tr:hover {
    background-color: var(--accent-color);
    cursor: default;
    transition: background-color 0.2s ease;
}

/* Flerkolomnevisning av tabeller */
.golf-handicap-slope-table-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.golf-handicap-slope-table-container .column-table {
    margin: 0;
    flex-grow: 1;
}

/* Bruk dynamiske farger for tekst */
.golf-handicap-slope-tee-row .golf-handicap-slope-tee-info .golf-handicap-slope-tee-name {
    color: var(--golf-handicap-slope-primary-text-color, white) !important;
}

/* Sikre at alle child-elementer også får riktig farge */
.golf-handicap-slope-tee-info * {
    color: var(--golf-handicap-slope-primary-text-color, white) !important;
}

/* Eksplisitte kolonneinnstillinger */
.golf-handicap-slope-table-container.columns-1 .column-table {
    flex-basis: 100%;
    width: 100%;
}

.golf-handicap-slope-table-container.columns-2 .column-table {
    flex-basis: calc(50% - 5px);
}

.golf-handicap-slope-table-container.columns-3 .column-table {
    flex-basis: calc(33.333% - 7px);
}

.golf-handicap-slope-table-container.columns-4 .column-table {
    flex-basis: calc(25% - 8px);
}

/* Overskrifter for slopetabeller */
.golf-handicap-slope-section-heading {
    text-align: center;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 0;
    font-size: 2em;
    font-weight: 700;
    display: block;
    clear: both;
}

.golf-handicap-slope-section-heading.first {
    margin-top: 5px;
}

.golf-handicap-slope-section {
    margin-bottom: 40px;
}

/* Animasjoner */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animated {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsiv tabellstil */
@media (max-width: 768px) {
    .golf-handicap-slope-tee-row {
        flex-direction: column;
    }
    
    .golf-handicap-slope-tee-info {
        width: 100%;
        flex: none;
        justify-content: center;
    }
    
    .golf-handicap-slope-tee-center {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
        background-color: #f5f7f5;
    }
    
    .golf-handicap-slope-tee-actions {
        margin: 20px 0 10px;
        justify-content: center;
    }
}

/* Kompenser for WordPress tema padding */
.golf-handicap-slope.handicap-calculator {
    margin-bottom: -150px !important; /* Negativ margin for å fjerne ekstra plass */
}

/* Sørg for at innholdet ikke blir kuttet */
.golf-handicap-slope-card {
    position: relative;
    z-index: 1;
    background: white; /* Sikre at bakgrunnen er synlig */
}

/* WordPress tema override - målretter spesifikke containere */
.entry-content .wp-block-group:has(.golf-handicap-slope),
.entry-content > div:has(.golf-handicap-slope) {
    padding-bottom: 20px !important;
    min-height: auto !important;
}

/* Hvis kalkulatoren er i en wp-block-group */
.wp-block-group:has(.golf-handicap-slope) {
    padding-bottom: 20px !important;
}

/* Fjern ekstra margin fra parent elementer */
.golf-handicap-slope.handicap-calculator:last-child {
    margin-bottom: 0 !important;
}

/* Fallback for nettlesere som ikke støtter :has() */
.wp-block-group {
    min-height: auto !important;
}

/* Spesifikk override for kjente WordPress tema-klasser */
.wp-block-group.alignfull,
.wp-block-group.has-background {
    padding-bottom: 20px !important;
}

/* Fjern ekstra spacing fra entry-content */
.entry-content > *:has(.golf-handicap-slope),
.entry-content > .wp-block-group {
    margin-bottom: 0 !important;
}
