/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* General */

.ct-container-full {
	padding-top: 0px !important;
}

.dark-hs:hover {
	background-color: var(--theme-button-background-hover-color) !important;
	border-radius: 25px;
	background-color: #0F3D33 !important;
}

.fit-content {
	width: fit-content;
	display: inline-block;
}

.toc {
	box-shadow: 15px 10px var(--stk-default-button-background-color);
    border-radius: 10px;
}

.green-shadow {
	box-shadow: 10px 15px var(--theme-button-background-initial-color);
}

.dark-red-shadow {
	box-shadow: 10px 15px var(--theme-palette-color-4);
}

.svg-container > svg {
	width: 100%;
}

h1 {
	padding-top: var(--wp--preset--spacing--50);
}

@media (max-width: 1024px) and (min-width: 690px) {
.column-ms-down > .stk-row {
	flex-direction: column !important;
}
}

/* Animated SVGs */

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-6px);
  }
}

svg.ugb-custom-icon {
  transition: all 0.2s ease-in-out;
}

/* svg.ugb-custom-icon:hover {
  animation: bounce 1s ease-in-out infinite;
} */

/* Kandidaten Layout and Design */


body .candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px)); 
    gap: 30px;
    margin: 40px 0;
    justify-content: center; 
}

body .candidate-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.candidate-image img, .placeholder-avatar {
	width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    object-fit: cover;
}

.placeholder-avatar svg {
    width: 100%;
    height: auto;
    opacity: 0.8;
}

.candidate-info {
    padding: 24px;
    flex-grow: 1;
}

.candidate-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--theme-palette-color-1);
}

.candidate-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    font-style: italic;
}

.stk-block-timeline__date {
	font-style: italic;
}


/* Kandidaten interaction */

.candidate-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.candidate-card:hover {
    border-color: var(--theme-palette-color-2);
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.candidate-image img {
    transition: transform 0.5s ease;
}

/* Smooth Transition for the Container */
.candidate-image {
    overflow: hidden;
    background: #f1f5f9;
    line-height: 0; /* Removes tiny gap at bottom of images */
}

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

/* New updates for Candidates */

.placeholder-avatar svg path {
    transition: fill 0.3s ease;
    fill: var(--theme-palette-color-2) !important;
}

.placeholder-avatar {
    background: var(--theme-palette-color-10);
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-avatar svg path {
    fill: #CBD5E1;
    transition: fill 0.5s ease !important;
}

/* 2. The Hover State */
.candidate-card:hover .placeholder-avatar {
    background: var(--theme-palette-color-9) !important;
}

.candidate-card:hover .placeholder-avatar svg path {
    fill: var(--theme-palette-color-1) !important;
}

/* Mobile Optimization Fix */

@media (max-width: 480px) {
    body .candidate-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

/* Mobile menu white links */

nav[class*=menu] li[class*=current-menu-]>.ct-menu-link, nav[class*=menu] li[class*=current-menu-]>.ct-sub-menu-parent {
	text-decoration: underline;
    color: var(--theme-link-initial-color) !important;
}

nav[class*=menu] li:hover>.ct-menu-link, nav[class*=menu] li:hover>.ct-sub-menu-parent {
	color: var(--theme-link-initial-color) !important;
}