/* ==========================================================================
   PRACTICE AREAS - SIGNATURE LEGAL SERVICES GRID
   ========================================================================== */

.pa-signature-section {
    padding: 6rem 0;
    background: #F8FAFC;
    position: relative;
    overflow: hidden;
}

.pa-signature-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../../../uploads/2024/10/supreme-court-bd-2.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 0;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.pa-signature-section > .container {
    position: relative;
    z-index: 1;
}

/* Header */
.pa-signature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.pa-signature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #E8F0FE;
    color: #0055FF;
    padding: 0.35rem 0.95rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.pa-signature-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0055FF;
}

.pa-signature-title {
    font-size: clamp(2rem, 3.5vw, 2.625rem);
    font-weight: 800;
    color: #0A1E3D;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.pa-signature-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #0055FF;
    color: #FFFFFF !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pa-signature-btn:hover {
    background: #0036A8;
    transform: translateY(-2px);
    color: #FFFFFF !important;
}

.pa-signature-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.pa-signature-btn:hover .pa-signature-btn__icon {
    transform: translateX(2px);
}

/* Masonry Grid Layout */
.pa-signature-grid {
    column-count: 3;
    column-gap: 0.75rem;
}

/* Card */
.pa-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0.75rem;
    break-inside: avoid;
}

/* Card Full-Width Header Image */
.pa-card__header {
    position: relative;
    width: 100%;
    height: 70px; /* Drastically reduced height */
    overflow: hidden;
    background: #0055FF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
}

.pa-card__header-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.pa-card__header-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 85, 255, 0.8); /* Primary color overlay */
    z-index: 1;
}

/* Card Body */
.pa-card__body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Card Description Wrapper */
.pa-card__desc-wrap {
    position: relative;
    padding: 1.25rem 1.5rem 2.5rem;
    margin: 0;
}

.pa-card__desc {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.65;
    margin: 0;
}

.pa-card__desc-mask {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 20px;
    display: block;
}

/* Unique background colors for each card */
.pa-card__desc-wrap--1 { background: #EFF6FF; } /* Light Blue */
.pa-card__desc-wrap--2 { background: #F0FDF4; } /* Light Green */
.pa-card__desc-wrap--3 { background: #FFF7ED; } /* Light Orange */
.pa-card__desc-wrap--4 { background: #FDF2F8; } /* Light Pink */
.pa-card__desc-wrap--5 { background: #F5F3FF; } /* Light Purple */
.pa-card__desc-wrap--6 { background: #ECFDF5; } /* Light Teal */

/* Card Title */
.pa-card__title {
    position: relative;
    z-index: 2; /* Ensure it is above the overlay */
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
    padding: 0 1.5rem;
    line-height: 1.3;
}

.pa-card__title::after {
    display: none; /* Removed the small blue accent line since it's over an image now */
}

/* Card List */
.pa-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pa-card__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.5;
    font-weight: 500;
}

.pa-card__check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pa-card__check svg {
    width: 18px;
    height: 18px;
    display: block;
}

.pa-card__text {
    flex: 1;
}

/* Responsive */
@media (max-width: 1023px) {
    .pa-signature-grid {
        column-count: 2;
        column-gap: 0.75rem;
    }

    .pa-card__body {
        padding: 1.75rem 1.5rem 2rem;
    }
}

@media (max-width: 767px) {
    .pa-signature-section {
        padding: 4rem 0;
    }

    .pa-signature-header {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .pa-signature-header__left {
        flex: 1;
    }

    .pa-signature-btn {
        padding: 0.5rem;
        gap: 0;
        width: 32px;
        height: 32px;
        justify-content: center;
    }

    .pa-signature-btn > span:first-child {
        display: none; /* Hide text, show only icon */
    }

    .pa-signature-btn__icon {
        width: 16px;
        height: 16px;
        background: transparent;
    }

    .pa-signature-grid {
        column-count: 1;
    }

    .pa-card {
        border-radius: 18px;
    }

    .pa-card__body {
        padding: 1.75rem 1.25rem 2rem;
    }
    
    .pa-card__title {
        font-size: 1.05rem;
    }
    
    .pa-card__item {
        font-size: 0.875rem;
        gap: 0.65rem;
    }
}
