/* Общие стили для карточек коллекций */
.husky-collection-card {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
}

.husky-collection-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.husky-collection-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.husky-collection-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.husky-collection-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
}

.husky-collection-description {
    line-height: 1.6;
    color: #555;
}

.husky-collection-description p {
    margin: 0 0 1em 0;
    line-height: 1.6;
}

.husky-collection-description a {
    color: #0073aa;
    text-decoration: none;
}

.husky-collection-description a:hover {
    text-decoration: underline;
}

.husky-collection-description ul,
.husky-collection-description ol {
    margin-left: 20px;
    padding-left: 0;
}

.husky-collection-description li {
    margin-bottom: 5px;
}

.husky-collection-description strong,
.husky-collection-description b {
    font-weight: bold;
}

.husky-collection-description em,
.husky-collection-description i {
    font-style: italic;
}

/* Шаблон 1 (по умолчанию) - изображение слева */
.husky-collection-card.template-1 {
    display: flex;
    flex-direction: row;
}

.husky-collection-card.template-1 .husky-collection-image {
    flex: 0 0 auto;
    width: 200px; /* Значение по умолчанию */
    height: 200px; /* Значение по умолчанию */
    overflow: hidden;
}

.husky-collection-card.template-1 .husky-collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Шаблон 2 - изображение сверху (используется при открытии) */
.husky-collection-card.template-2 {
    display: flex;
    flex-direction: column;
}

.husky-collection-card.template-2 .husky-collection-image {
    width: 100%;
    height: auto;
}

.husky-collection-card.template-2 .husky-collection-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

.husky-collection-card.template-2 .husky-collection-content {
    padding: 20px;
}

/* Стили для постов коллекции */
.husky-collection-posts {
    margin-top: 40px;
}

.husky-post {
    display: flex;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.husky-post-image {
    flex: 0 0 300px;
    overflow: hidden;
}

.husky-post-image a {
    display: block;
    height: 100%;
}

.husky-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.husky-post-content {
    flex: 1;
    padding: 20px;
}

.husky-post-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

.husky-post-title a {
    color: inherit;
    text-decoration: none;
}

.husky-post-title a:hover {
    color: #0073aa;
}

.husky-post-taxonomies {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.husky-post-taxonomies a {
    color: #666;
    text-decoration: none;
    margin-right: 0px;
}

.husky-post-taxonomies a:hover {
    color: #000;
    text-decoration: underline;
}

.husky-post-date {
    font-size: 14px;
    color: #999;
}

.husky-pagination {
    margin-top: 30px;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .husky-collection-card,
    .husky-post {
        flex-direction: column;
    }

    .husky-collection-image,
    .husky-post-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        height: 200px;
    }
}