/* ============================================================
   Shared activity/service card component  (.atv-card)
   Used by: Home/Index, Atividade/Atividades, Servico/Servicos
   ============================================================ */

.atv-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    border: 1px solid #eef1f6;
    height: 100%;
}

.atv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 76, 153, 0.15);
}

.atv-card-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #e6edf7 0%, #d4e0f0 100%);
    flex-shrink: 0;
}

.atv-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform .4s ease;
}

.atv-card:hover .atv-card-img img {
    transform: scale(1.06);
}

.atv-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #003366;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.atv-card-badge[data-cat="cultura"]     { background: rgba(139, 92, 246, .95); color: #fff; }
.atv-card-badge[data-cat="assistencia"] { background: rgba(34, 197, 94, .95);  color: #fff; }
.atv-card-badge[data-cat="lazer"]       { background: rgba(249, 115, 22, .95); color: #fff; }
.atv-card-badge[data-cat="educacao"]    { background: rgba(59, 130, 246, .95); color: #fff; }
.atv-card-badge[data-cat="saude"]       { background: rgba(236, 72, 153, .95); color: #fff; }
.atv-card-badge[data-cat="esportes"]    { background: rgba(20, 184, 166, .95); color: #fff; }
.atv-card-badge[data-cat="odontologia"] { background: rgba(6, 182, 212, .95);  color: #fff; }
.atv-card-badge[data-cat="servicos"]    { background: rgba(6, 182, 212, .95);  color: #fff; }

.atv-card-body {
    padding: 18px 18px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.atv-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 41px;
}

.atv-card-title a {
    color: inherit;
    text-decoration: none;
}

.atv-card-title a:hover { color: #004c99; }

.atv-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
    font-weight: 500;
}

.atv-card-location i { color: #F6BE00; }

.atv-card-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #004c99;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s ease, gap .2s ease;
}

.atv-card-cta:hover {
    background: #003366;
    color: #fff;
    gap: 12px;
    text-decoration: none;
}

.atv-card-cta i {
    font-size: 12px;
    transition: transform .2s ease;
}

.atv-card-cta:hover i { transform: translateX(2px); }

/* ============================================================
   Shared news card overrides (.h2_blog-item)
   Aligns the Index grid cards with the Home swiper cards
   ============================================================ */

.nt-card-grid .h2_blog-item {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
}

.nt-card-grid .h2_blog-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 76, 153, .12);
}

.nt-card-grid .h2_blog-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.nt-card-grid .h2_blog-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.nt-card-grid .h2_blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform .4s ease;
}

.nt-card-grid .h2_blog-item:hover .h2_blog-img img {
    transform: scale(1.05);
}

.nt-card-grid .h2_blog-content {
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: auto;
    box-shadow: none;
    border-radius: 0;
}

.nt-card-grid .h2_blog-content-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.nt-card-grid .h2_blog-content-meta i {
    color: #F6BE00;
    margin-right: 4px;
}

.nt-card-grid .h2_blog-content-title {
    font-size: 15px !important;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
