/* Articles and /novosti Catalog Page Styles */

/* Modern Categories Design */
.categories-modern-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-modern-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-modern-card:hover {
    border-color: #5DA9D8;
    box-shadow: 0 4px 12px rgba(93, 169, 216, 0.15);
    transform: translateY(-2px);
}

.category-header {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    position: relative;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    margin-right: 16px;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-icon-placeholder {
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-title-wrapper {
    flex: 1;
    min-width: 0;
}

.category-title {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.article-count {
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
}

.category-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    border-radius: 6px;
    flex-shrink: 0;
}

.category-toggle:hover {
    background: #f1f5f9;
    color: #5DA9D8;
}

.toggle-icon {
    transition: transform 0.2s ease;
}

.category-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.category-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.category-articles {
    display: none;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.category-articles.active {
    display: block;
}

.articles-list {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.article-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-content {
    padding: 16px;
}

.card-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.card-title a {
    text-decoration: none;
    color: #1e293b;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #3b82f6;
}

.card-excerpt {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-date {
    font-size: 13px;
    color: #94a3b8;
}

/* Old link styles for backward compatibility */
.article-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    text-decoration: none;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s ease;
}

.article-link:last-child {
    border-bottom: none;
}

.article-link:hover {
    color: #3b82f6;
}

.article-link:hover svg {
    transform: translateX(4px);
}

.article-link svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: #94a3b8;
}

.article-title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

/* Article Category Card (Old Design) */
.article-category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    cursor: pointer;
}

.article-category-card:hover {
    background: #ffffff;
    border-color: #5DA9D8;
    box-shadow: 0 4px 12px rgba(93, 169, 216, 0.15);
    transform: translateY(-2px);
}

.category-image {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    margin-right: 16px;
    flex-shrink: 0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.category-text {
    flex: 1;
}

.category-text h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.category-text p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Articles Section Container */
.articles-section {
    margin: 40px 0;
}

.articles-section-container {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 40px auto;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #5DA9D8;
    position: relative;
}

.articles-section-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.section-title {
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #286c91;
    margin: 0 0 30px 0;
}

/* Therapy Categories Grid */
.therapy-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .therapy-categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Therapy Category Card */
.therapy-category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.therapy-category-card:hover {
    border-color: #ED8E00;
    box-shadow: 0 4px 12px rgba(237, 142, 0, 0.15);
    transform: translateY(-2px);
}

.therapy-category-card.active {
    border-color: #ED8E00;
    background: #fff9f0;
}

.therapy-content {
    flex: 1;
    padding-right: 15px;
}

.therapy-content h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.therapy-content .article-count {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.therapy-category-card .toggle-icon {
    flex-shrink: 0;
    color: #ED8E00;
    transition: transform 0.3s ease;
}

.therapy-category-card.active .toggle-icon {
    transform: rotate(180deg);
}

/* Category Articles Container */
.category-articles {
    display: none;
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Articles List */
.articles-list {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
}

.article-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #334155;
    transition: all 0.2s ease;
}

.article-link:last-child {
    margin-bottom: 0;
}

.article-link:hover {
    background: #5DA9D8;
    border-color: #5DA9D8;
    color: #ffffff;
    transform: translateX(5px);
}

.article-link:hover svg {
    color: #ffffff;
}

.article-title {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.article-link svg {
    flex-shrink: 0;
    margin-left: 10px;
    color: #5DA9D8;
    transition: color 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .categories-modern-grid {
        gap: 12px;
    }

    .category-header {
        padding: 16px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }

    .category-title {
        font-size: 15px;
    }

    .article-count {
        font-size: 13px;
    }

    .articles-list {
        padding: 12px 16px;
        grid-template-columns: 1fr;
    }

    .article-link {
        padding: 10px 12px;
        font-size: 13px;
    }

    .articles-section-container {
        margin: 40px auto 30px auto;
        padding: 20px 15px;
        border-radius: 8px;
    }

    .articles-section-container::before {
        top: -15px;
    }

    .category-image {
        width: 60px;
        height: 60px;
        margin-right: 12px;
    }

    .category-content {
        padding: 16px;
    }

    .category-text h3 {
        font-size: 16px;
    }

    .section-title {
        font-size: 20px;
        margin: 0 0 20px 0;
    }
}




/* News List Component */
.list-now.nnews {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 20px;
}

.list-now.nnews .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
}

.list-now.nnews .col-md-9 {
    flex: 1 1 auto;
    width: calc(75% - 20px);
}

.list-now.nnews .doct-thumb-news {
    width: 100%;
    overflow: hidden;
}

.list-now.nnews .doct-thumb-news img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.list-now.nnews .doct-cont-news {
    width: 100%;
}

.list-now.nnews .date-news {
    color: #ED8E00;
    font-size: 14px;
    margin-bottom: 10px;
}

.list-now.nnews .doct-ttl {
    margin-bottom: 15px;
}

.list-now.nnews .doct-ttl a {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}

.list-now.nnews .doct-ttl a:hover {
    color: #5DA9D8;
}

.list-now.nnews .doct-txt {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.list-now.nnews .doct-txt a {
    color: #5DA9D8;
    text-decoration: none;
}

.list-now.nnews .doct-txt a:hover {
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 991px) {
    .list-now.nnews {
        gap: 15px;
    }

    .list-now.nnews .col-md-3 {
        width: 30%;
    }

    .list-now.nnews .col-md-9 {
        width: calc(70% - 15px);
    }
}

@media (max-width: 860px) {
    .list-now.nnews {
        flex-direction: column;
        gap: 15px;
    }

    .list-now.nnews .col-md-3,
    .list-now.nnews .col-md-9 {
        width: 100%;
        padding: 0;
    }

    .list-now.nnews .doct-thumb-news {
        max-width: 100%;
        margin-bottom: 15px;
    }

    .list-now.nnews .doct-thumb-news img {
        max-height: 300px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .list-now.nnews .doct-ttl a {
        font-size: 16px;
    }

    .list-now.nnews .doct-txt {
        font-size: 14px;
    }
}



/* News List Component */
.list-now.nnews {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 20px;
}

.list-now.nnews .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
}

.list-now.nnews .col-md-9 {
    flex: 1 1 auto;
    width: calc(75% - 20px);
}

.list-now.nnews .doct-thumb-news {
    width: 100%;
    overflow: hidden;
}

.list-now.nnews .doct-thumb-news img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.list-now.nnews .doct-cont-news {
    width: 100%;
}

.list-now.nnews .date-news {
    color: #ED8E00;
    font-size: 14px;
    margin-bottom: 10px;
}

.list-now.nnews .doct-ttl {
    margin-bottom: 15px;
}

.list-now.nnews .doct-ttl a {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}

.list-now.nnews .doct-ttl a:hover {
    color: #5DA9D8;
}

.list-now.nnews .doct-txt {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.list-now.nnews .doct-txt a {
    color: #5DA9D8;
    text-decoration: none;
}

.list-now.nnews .doct-txt a:hover {
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 991px) {
    .list-now.nnews {
        gap: 15px;
    }

    .list-now.nnews .col-md-3 {
        width: 30%;
    }

    .list-now.nnews .col-md-9 {
        width: calc(70% - 15px);
    }
}

@media (max-width: 860px) {
    .list-now.nnews {
        flex-direction: column;
        gap: 15px;
    }

    .list-now.nnews .col-md-3,
    .list-now.nnews .col-md-9 {
        width: 100%;
        padding: 0;
    }

    .list-now.nnews .doct-thumb-news {
        max-width: 100%;
        margin-bottom: 15px;
    }

    .list-now.nnews .doct-thumb-news img {
        max-height: 300px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .list-now.nnews .doct-ttl a {
        font-size: 16px;
    }

    .list-now.nnews .doct-txt {
        font-size: 14px;
    }
}


/* ------------------- NEW ANIMAL CATEGORIES BLOCK ------------------*/
.animal-categories-new-block {
    width: 100%;
    padding: 0 40px;
    margin: 40px 0;
}

.animal-categories-new-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 100%;
}

.animal-category-new-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.animal-category-new-item:hover {
    background: #5DA9D8;
    border-color: #5DA9D8;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(93, 169, 216, 0.25);
}

.animal-category-new-item:hover a {
    color: #ffffff;
}

.animal-category-new-item.contact-card:hover {
    background: #ED8E00;
    border-color: #ED8E00;
}

.animal-category-new-item a {
    text-decoration: none;
    color: #334155;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.animal-category-new-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    border-radius: 8px;
}

.animal-category-new-txt {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .animal-categories-new-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .animal-categories-new-block {
        padding: 0 20px;
    }

    .animal-categories-new-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .animal-category-new-item {
        padding: 16px;
    }

    .animal-category-new-item img {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }

    .animal-category-new-txt {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .animal-categories-new-grid {
        gap: 12px;
    }

    .animal-category-new-item {
        padding: 12px;
    }
}
