/* ==========================================
   MAIN SECTION
========================================== */

.legal-directory-section {
    padding: 0px 0;
    background: #f7f8fa;
}


/* ==========================================
   SECTION BOX
========================================== */

.directory-box {
    /*background: #ffffff;
    border: 1px solid #e2e6eb;
    border-radius: 18px;
    padding: 20px 20px 28px;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);*/
}


/* ==========================================
   SECTION HEADING
========================================== */

.section-heading {
    margin-bottom: 25px;
}


.section-heading h2 {
    margin: 0;

    font-size: 20px;
    font-weight: 700;

    letter-spacing: 1px;
}


.section-heading span {
    display: block;

    width: 42px;
    height: 3px;

    margin-top: 10px;

    border-radius: 5px;
}


/* Legal Heading */

.legal-heading h2 {
    color: #152b4d;
}


.legal-heading span {
    background: #1c4f92;
}


/* Court Heading */

.court-heading h2 {
    color: #173d2b;
}


.court-heading span {
    background: #285c40;
}


/* ==========================================
   CARD COLUMN GAP
========================================== */

.directory-box .row {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 16px;
}


/* ==========================================
   CARD
========================================== */

.directory-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    /*min-height: 390px;*/
    padding: 10px 0px 25px 0px;
    background: #ffffff;
    border: 1px solid #e2e6eb;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}


.directory-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}


/* ==========================================
   ICON CIRCLE
========================================== */

.directory-icon {
    width: 115px;
    height: 115px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f1f4fa;

    margin-bottom: 24px;
}


.directory-icon i {
    font-size: 58px;

    line-height: 1;
}


/* ==========================================
   LEGAL CARD
========================================== */

.legal-card .directory-icon i {
    color: #174a91;
}


.legal-card h3 {
    color: #172846;
}


.legal-card .card-bottom {
    color: #174a91;
}


/* ==========================================
   COURT CARD
========================================== */

.court-card .directory-icon {
    background: #f1f5f2;
}


.court-card .directory-icon i {
    color: #20563b;
}


.court-card h3 {
    color: #172846;
}


.court-card .card-bottom {
    color: #20563b;
}


/* ==========================================
   CARD TITLE
========================================== */

.directory-card h3 {
    margin: 0 0 20px;

    font-size: 18px;
    font-weight: 700;

    line-height: 1.25;
}


/* ==========================================
   CARD DESCRIPTION
========================================== */

.directory-card p {
    margin: 0;

    color: #49566a;

    font-size: 18px;

    line-height: 1.65;
}


/* ==========================================
   COURT TITLE LINE
========================================== */

.title-line {
    width: 42px;
    height: 3px;

    margin-top: 12px;

    border-radius: 10px;

    background: #20563b;
}


/* ==========================================
   CARD BOTTOM
========================================== */

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    width: 100%;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #d6dce4;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: -10px;
}


.card-bottom i {
    font-size: 16px;

    transition: transform 0.3s ease;
}


.directory-card:hover .card-bottom i {
    transform: translateX(5px);
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 991.98px) {

    .directory-box {
        padding: 0px 0px 0px 0px;
    }


    .section-heading h2 {
        font-size: 18px;
    }


    .directory-card {
        min-height: 430px;

        padding: 25px 15px 20px;
    }


    .directory-icon {
        width: 95px;
        height: 95px;

        margin-bottom: 18px;
    }


    .directory-icon i {
        font-size: 48px;
    }


    .directory-card h3 {
        font-size: 16px;
    }


    .directory-card p {
        font-size: 16px;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 575.98px) {
    .mobile_container_for_legal_information{
        margin-top: -35px !important;
    }
    .legal-directory-section {
        padding: 15px 0;
    }


    .directory-box {
        padding: 0px 0px 0px 0px;

        border-radius: 12px;

        margin-bottom: 20px;
    }


    .section-heading {
        margin-bottom: 18px;

        padding-left: 5px;
    }


    .section-heading h2 {
        font-size: 18px;

        letter-spacing: 0;
    }


    .section-heading span {
        width: 30px;
        height: 2px;

        margin-top: 6px;
    }


    /* Mobile gap */
    .directory-box .row {
        --bs-gutter-x: 8px;
        --bs-gutter-y: 10px;
    }


    .directory-card {
        min-height: 250px;
        padding: 5px 5px 0px 5px;
        border-radius: 12px;
    }

    .directory-card2 {
        min-height: 212px !important;
        padding: 5px 5px 0px 5px !important;
        border-radius: 12px !important;
    }


    .directory-icon {
        width: 68px;
        height: 68px;

        margin-bottom: 15px;
    }


    .directory-icon i {
        font-size: 35px;
    }


    .directory-card h3 {
        font-size: 16px;

        line-height: 1.25;

        margin-bottom: 12px;
    }


    .directory-card p {
        font-size: 14px;

        line-height: 1.5;
    }


    .title-line {
        width: 28px;
        height: 2px;

        margin-top: 5px;
    }


    .card-bottom {
        gap: 8px;
        padding-top: 10px;
        font-size: 14px;
        padding-bottom: 10px;
    }


    .card-bottom i {
        font-size: 16px;
    }

}