/* Стили для Hero-секции (адаптировано из blog-list-template) */
:root {
    --primary-color: #0097dc;
    --primary-light: #00b4ff;
    --primary-dark: #007bb5;
    --secondary-color: #00dcb4;
    --gradient-primary: linear-gradient(135deg, #0097dc 0%, #00b4ff 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 151, 220, 0.9) 0%, rgba(0, 180, 255, 0.85) 100%);
}

.page-hero {
    position: relative;
    height: 10vh;
    min-height: 130px;
    overflow: hidden;
    background: var(--gradient-primary);
    color: white;
    /* margin-bottom: 60px; */
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.custom-breadcrumbs {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.custom-breadcrumbs a {
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.custom-breadcrumbs a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.custom-breadcrumbs span {
    margin: 0 8px;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}


/* Стили для карточек (скопировано из index.php) */
.case-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 151, 220, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 151, 220, 0.25);
}

.case-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

.case-card:hover .case-image img {
    transform: scale(1.08);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-view-btn {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-view-btn:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
    color: white;
    text-decoration: none !important;
}

.case-view-btn i {
    font-size: 24px;
}

.case-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 151, 220, 0.4);
    z-index: 2;
}

.case-category i {
    font-size: 16px;
}

.case-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.case-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-title a:hover {
    color: var(--primary-color);
}

.case-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.case-read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    /* Прижимает кнопку к низу */
}

.case-read-more:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
    text-decoration: none !important;
}

@media (max-width: 991px) {
    .page-hero {
        padding: 80px 0 60px 0;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .case-image {
        height: 250px;
    }

    .case-content {
        padding: 25px;
    }

    .case-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .page-hero {
        padding: 60px 0 40px 0;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .case-image {
        height: 220px;
    }

    .case-category {
        top: 15px;
        right: 15px;
        padding: 8px 15px;
        font-size: 12px;
    }

    .case-content {
        padding: 20px;
    }

    .case-title {
        font-size: 1.1rem;
    }
}