@import url("variables.css");

/* Stylizacja dla shortcode'u [contact] */
.wp-block-group {
    margin-top: 0 !important;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    font-family: var(--font-martel-sans), sans-serif;
}

.wp-block-post-title {
    font-size: var(--font-size-xl);
    margin: 0 !important;
    padding: 0 var(--spacing-md);
}

.entry-content {
    padding: 0;
}

/* Linki w wp-block-post-content */
.wp-block-post-content a:where(:not(.wp-element-button)) {
    color: var(--color-black);
}

/* Główny wrapper kontaktu */
.contact-wrapper {
    display: flex;
    margin: 0;
    box-sizing: border-box;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Sekcje kontaktu */
.contact-section {
    background-color: var(--color-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Nagłówek sekcji */
.contact-section h1 {
    font-size: var(--font-size-xxl);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.contact-section h1::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background-color: var(--color-primary);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

/* Listy sekretariatu, technicznej obsługi */
.secretariat-list,
.techniczna-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Elementy listy */
.secretariat-item,
.techniczna-item {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    margin-bottom: 50px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
    border-bottom: 1px solid var(--color-border-2);
}

.secretariat-item:last-child,
.techniczna-item:last-child {
    margin-bottom: 0;
}

/* Hover efekt */
.secretariat-item:hover,
.techniczna-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Tytuł w elementach listy */
.secretariat-item h3,
.techniczna-item h3 {
    font-size: var(--font-size-lg);
    margin: 0;
}

/* Paragraf w elementach listy */
.secretariat-item p,
.techniczna-item p {
    font-size: var(--font-size-base);
}

/* Linki w sekcji kontaktu */
.contact-section a {
    color: var(--color-black);
    text-decoration: none;
    font-weight: bold;
    transition: color var(--transition-base);
}

.contact-section a:hover {
    color: var(--color-hover-link);
    text-decoration: none;
}

/* Tabela godzin pracy */
.work-hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-sm);
}

.work-hours-table th,
.work-hours-table td {
    border: 1px solid var(--color-border-2);
    padding: var(--spacing-sm);
}

.work-hours-table th {
    background-color: #f2f2f2;
    text-align: left;
}

.work-hours-table tr:nth-child(even) {
    background-color: var(--color-gray-200);
}

.work-hours-table tr:hover {
    background-color: #eaeaea;
}
