/* Taxonomy Template Styles */
#ka .taxonomy-container {
    max-width: var(--ka-max-width);
    margin: 0 auto;
    padding: 2rem 1rem;
}
#ka.ka-full-width .taxonomy-container {
    max-width: 100%;
}

/* Header Styles */
#ka .ka-taxonomy-header {
    padding: 3rem 0;
    margin-bottom: 2rem;
}

#ka .taxonomy-header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

#ka .taxonomy-header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    margin-left: -45px;/* --Page back link */
}

#ka .taxonomy-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}
@media (max-width: 767px) {
    #ka .taxonomy-container {
        padding: 0;
    }
    #ka .taxonomy-header-content h1 {
        font-size: 2.5rem;
    }

}

/*  -- course location -- */
.tax-course_location #ka .ka-taxonomy-header {
    padding: 3rem 0 0 0;
    margin-bottom: 2rem;
}

/* Main Content Styles */
#ka .taxonomy-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    #ka .taxonomy-content-grid {
        grid-template-columns: 1fr 2fr;
    }
}

#ka .taxonomy-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#ka .taxonomy-rich-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}
#ka .taxonomy-rich-description h3{
    margin-top: 1rem;
}



/* Course Dates Grid */
#ka .taxonomy-coursedates {
    margin-top: 3rem;
}

#ka .taxonomy-coursedates h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

#ka .coursedates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

#ka .coursedate-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
}

#ka .coursedate-card:hover {
    transform: translateY(-4px);
}

#ka .coursedate-image {
    height: 200px;
    overflow: hidden;
}

#ka .coursedate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#ka .coursedate-content {
    padding: 1.5rem;
}

#ka .coursedate-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

#ka .coursedate-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

#ka .coursedate-meta i {
    margin-right: 0.5rem;
}

#ka .ka-button {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

#ka .ka-button:hover {
    background-color: #0056b3;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    #ka .taxonomy-header-content {
        padding: 0 1rem;
    }
    
    #ka .coursedates-grid {
        grid-template-columns: 1fr;
    }
    
    #ka .taxonomy-content-grid {
        gap: 1.5rem;
    }
}

/* Kurslistevisning */
/*
#ka .courselist-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
*/
#ka .courselist-content.open p.locations-list a{
    color: #666;
    font-size: var(--ka-font-xs);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.1em 0;
}

#ka .courselist-content.open p.locations-list a:hover {
    text-decoration: underline;
    text-decoration-color: #e6e6e6;
}

/* Paginering */
#ka .pagination-wrapper {
    margin-top: 2rem;
    text-align: center;
}

#ka .pagination {
    display: inline-flex;
    gap: 0.5rem;
}

#ka .pagination a,
#ka .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

#ka .pagination a:hover {
    background-color: #e0e0e0;
}

#ka .pagination .current {
    background-color: #007bff;
    color: white;
}

/* Melding når ingen kurs er tilgjengelige */
#ka .no-courses-message {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

#ka .no-courses-message p {
    font-size: 1.1rem;
    color: #666;
}

/* Spesifikke lokasjoner */
#ka .specific-locations-section {
    margin: 0 0 2rem 0;
    padding: 0 2rem 2rem;
    border-radius: 8px;
}

#ka .specific-locations-section h3 {
    margin-bottom: 1.5rem;
    color: #666;
}

#ka .specific-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}


#ka .location-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

#ka .location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

#ka .location-card.active {
    border: 2px solid var(--ka-color-light);
}

/* Location card as Google Maps link */
#ka .location-card.location-map-link {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

#ka .location-card.location-map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

#ka .location-card.location-map-link .map-link-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: var(--ka-color, #eb2599);
    font-size: 0.9rem;
}

#ka .location-card.location-map-link .map-link-indicator i {
    font-size: 1.2em;
}

#ka .location-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.02);
    opacity: 0;
    transition: opacity 0.2s ease;
}

#ka .location-card:hover::after {
    opacity: 1;
}

#ka .location-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

#ka .location-content h4 {
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.4;
}

#ka .location-address {
    font-size: 0.9rem;
    color: #666;
    position: relative;
}

#ka .location-address p {
    margin: 0.25rem 0;
}

#ka .location-address .street {
    font-weight: 500;
}

/* Kart-ikon styling */
#ka .maps-link {
    position: absolute;
    bottom: -0.5rem;
    right: -0.5rem;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

#ka .maps-link:hover {
    color: #333;
}

#ka .maps-link .ka-icon {
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 767px) {
    #ka .specific-locations-grid {
        grid-template-columns: 1fr;
    }
    
    #ka .specific-locations-section {
        padding: 1.5rem;
    }
}




/* Kurskort styling */
/*#ka .ka-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

#ka .ka-course-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

#ka .ka-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

#ka .ka-course-content {
    padding: 1.5rem;
}

#ka .ka-course-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #333;
}

#ka .ka-course-details {
    margin-bottom: 1.5rem;
}

#ka .ka-course-details p {
    margin: 0.5rem 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#ka .ka-course-details .ka-icon {
    color: #999;
}

#ka .ka-course-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

#ka .ka-course-button:hover {
    background-color: #0056b3;
}

@media (max-width: 767px) {
    #ka .ka-courses-grid {
        grid-template-columns: 1fr;
    }
}*/

/* Kategori-filter styling - hovedkurs visning*/
/**********************************************/
#ka .category-filter-wrapper {
    padding: 1.5rem;
    /*background-color: var(--ka-alt-background);*/
    border-radius: 8px;
}

#ka .category-filter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#ka .filter-label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

#ka .category-buttons {
    display: flex;
    flex-wrap: wrap;
}

/* Kategori-filter styling - kursdato og filter visning*/
#ka .reset-filters-btn,
#ka .reset-filters-btn:hover {
background: transparent;
box-shadow: none;
}

.filter-empty,
.filter-category:has(.filter-empty) {
    display: none!important;
}


.tax-coursecategory #ka .filter-category.has-parent .checkbox-label {
    font-size: 1em;
    opacity: 1;
}
/* Skjul filter-item (både venstre kolonne og topp-dropdown) som ikke har tilgjengelige alternativer */
.filter-item:not(:has(.filter-available, .filter-search)) {
    display: none !important;
}

/*
#ka .category-btn {
    padding: 0.5rem 1rem;
    background-color: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

#ka .category-btn:hover {
    border-color: #007bff;
    color: #007bff;
    background-color: #f8f9ff;
}

#ka .category-btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

#ka .category-btn.active:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
*/
/* Responsive design for filter */
@media (max-width: 767px) {
    #ka .category-filter-wrapper {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    #ka .category-buttons {
        gap: 0.5rem;
    }
    
    #ka .category-btn {
       /* padding: 0.4rem 0.8rem;*/
        font-size: 0.85rem;
    }
}

/* Melding når ingen kurs matcher filteret */
#ka .no-courses-filtered-message {
    margin: 2rem 0;
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
}

#ka .no-courses-filtered-message .message-content {
    max-width: 500px;
    margin: 0 auto;
}

#ka .no-courses-filtered-message .ka-icon {
    font-size: 3rem;
    background-color: white;
    margin-bottom: 1rem;
}

#ka .no-courses-filtered-message h3 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
}

#ka .no-courses-filtered-message p {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
}
/*
#ka .reset-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--ka-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

#ka .reset-filters-btn:hover {
    background-color: var(--ka-color-darker);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#ka .reset-filters-btn .ka-icon {
    font-size: 1rem;
    margin: 0;
}
*/
/* Responsive design for message */
@media (max-width: 767px) {
    #ka .no-courses-filtered-message {
        padding: 2rem 1rem;
        margin: 1.5rem 0;
    }
    
    #ka .no-courses-filtered-message h3 {
        font-size: 1.3rem;
    }
    
    #ka .no-courses-filtered-message p {
        font-size: 1rem;
    }
    
    #ka .reset-filters-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Hidden state for individual course items */
#ka .courselist-item.hidden {
    display: none !important;
}

