/* Общие стили */
.common-container {
    display: flex;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 5px;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.common-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.common-container h2 {
    margin-top: 0;
    font-size: 24px;
    transition: color 0.3s;
}

.common-container h2 a {
    text-decoration: none;
    color: inherit;
}

.common-container h2 a:hover {
    color: #0073aa;
}

.common-container .role,
.common-container .price,
.common-container .contact,
.common-container .category {
    font-weight: bold;
    margin-top: 10px;
}

.common-container .description {
    margin-top: 20px;
}

.common-container .thumbnail {
    flex-shrink: 0;
    margin-top: 0;
}

.common-container .thumbnail img {
    max-width: 250px;
    height: auto;
    object-fit: cover;
    margin-right: 20px;
    transition: transform 0.3s;
}

.common-container:hover .thumbnail img {
    transform: scale(1.05);
}

.common-container .post__text {
    flex-grow: 1;
}

/* Стили для отдельных компонентов */
.widget_freelancer_board_categories_widget,.widget_freelancer_board_roles_widget,
.category-page {
    border: 1px solid #ddd;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.widget_freelancer_board_categories_widget:hover,
.widget_freelancer_board_roles_widget:hover,
.category-page:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.widget_freelancer_board_categories_widget h2,.widget_freelancer_board_roles_widget h2,
.category-page h1 {
    margin-top: 0;
    transition: color 0.3s;
}

.widget_freelancer_board_categories_widget h2,.widget_freelancer_board_roles_widget h2 {
    font-size: 18px;
}

.category-page h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.widget_freelancer_board_categories_widget h2:hover, .widget_freelancer_board_roles_widget h2:hover,
.category-page h1:hover {
    color: #0073aa;
}

.widget_freelancer_board_categories_widget ul, .widget_freelancer_board_roles_widget ul,
.category-page ul,
.contacts ul,
.sidebar ul {
    list-style: none;
    padding-left: 0;
}

.widget_freelancer_board_categories_widget ul li, .widget_freelancer_board_roles_widget ul li,
.category-page ul li,
.contacts li,
.sidebar ul li {
    margin-bottom: 10px;
    transition: color 0.3s;
}

.widget_freelancer_board_categories_widget ul li a, .widget_freelancer_board_roles_widget ul li a,
.category-page ul li a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.widget_freelancer_board_categories_widget ul li a:hover, .widget_freelancer_board_roles_widget ul li a:hover,
.category-page ul li a:hover {
    color: #0073aa;
}

.contacts li {
    display: flex;
    align-items: center;
}

.contacts i {
    margin-right: 10px;
}

/* Основная область контента в виде сетки */
.main-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Левая панель навигации */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar h3 {
    margin-top: 0;
}

/* Основные стили для объявлений */
.freelancer-board-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.freelancer-board-item,
.freelancer-board {
    display: flex;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 5px;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
	position: relative;
}

.freelancer-board-item:hover,
.freelancer-board:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.freelancer-board-item .thumbnail,
.freelancer-board .thumbnail {
    flex-shrink: 0;
    margin-bottom: 10px;
}

.freelancer-board-item .thumbnail img,
.freelancer-board .thumbnail img {
    max-width: 250px;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s;
}

.freelancer-board-item:hover .thumbnail img,
.freelancer-board:hover .thumbnail img {
    transform: scale(1.05);
}

.freelancer-board-item h2,
.freelancer-board h2 {
    margin-top: 0;
    font-size: 24px;
    transition: color 0.3s;
}

.freelancer-board-item h2 a,
.freelancer-board h2 a {
    text-decoration: none;
    color: inherit;
}

.freelancer-board-item h2 a:hover,
.freelancer-board h2 a:hover {
    color: #0073aa;
}

.freelancer-board-item .role,
.freelancer-board-item .price,
.freelancer-board-item .category,
.freelancer-board .role,
.freelancer-board .price,
.freelancer-board .category {
    font-weight: bold;
    margin-top: 10px;
}
.role-with-border {
    display: inline-block;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid #0073aa;
    border-radius: 5px;
    position: absolute; /* Размещение внизу справа */
    bottom: 10px;
    right: 10px;
    z-index: 1; /* Убедиться, что этот элемент находится поверх других */
}


.theme-freelancer-board-form {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
}

.theme-freelancer-board-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.theme-freelancer-board-form p {
    margin-bottom: 15px;
}

.theme-freelancer-board-form label {
    display: block;
    margin-bottom: 5px;
}

.theme-freelancer-board-form input[type="text"],
.theme-freelancer-board-form input[type="file"],
.theme-freelancer-board-form textarea,
.theme-freelancer-board-form select {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.theme-freelancer-board-form textarea {
    height: 100px;
    resize: vertical;
}

.theme-freelancer-board-form input[type="radio"] {
    margin-right: 5px;
}

.theme-freelancer-board-form input[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.theme-freelancer-board-form input[type="submit"]:hover {
    background-color: #005f8d;
}
