/* Container & Headers */
.forms-directory {
    max-width: 1170px;
    margin: 60px auto;
    padding: 0 20px;
}

.category-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #373536;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    color: #373536;
}

.category-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.orange-bg {background-color: #F15A221A;}
.blue-bg {background-color: #72CAC91A;}
.green-bg {background-color: #A9B7241A;}

/* Form Card Layout */
.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
    gap: 50px 18px;
    margin-bottom: 60px;
}

.form-card {
    border: 1.5px solid #358FAF; /* Light blue border from JPG */
    border-radius: 25px;
    padding: 40px 17px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 345px;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(53, 143, 175, 0.1);
}

.card-title {
    font-size: 20px;
    font-weight: #700800;
    color: #05538E;
    margin-bottom: 6px;
    text-align: start;
}

.card-text {
    font-size: 18px;
    line-height: 1.5;
    color: #373536;
    text-align: start;
    font-weight: 400;
}

/* Button Logic */
.card-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 25px;
    width: 100%;
}

.card-footer a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    width: max-content;
}

.card-footer a:hover {
    transform: translateY(-2px);
}

/* Color Variations (Solid & Outline) */
/* Green (Payments) */
.btn-green-solid {background: #A9B724;color: #373536;}
.btn-green-outline { border: 1.5px solid #A9B724; color: #373536; }

/* Yellow (Inquiry/Service) */
.btn-yellow-solid {background: #F1AD13;color: #373536;}
.btn-yellow-outline { border: 1.5px solid #F2B724; color: #373536; }

/* Blue (Engineering) */
.btn-blue-solid { background: #05538E; color: #fff; }
.btn-blue-outline { border: 1.5px solid #05538E; color: #373536; }

/* Teal (General) */
.btn-teal-solid {background: #72CAC9;color: #373536;}
.btn-teal-outline { border: 1.5px solid #72CAC9; color: #373536; }

/* Hover States */
.card-footer a:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 1024px) {
    .forms-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 30px 15px;
    }
}

@media (max-width: 768px) {
    .forms-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .forms-directory {
        margin: 40px auto;
        padding: 0 16px;
    }
    .category-title {
        font-size: clamp(20px, 5vw, 28px);
    }
    .category-icon-wrapper {
        width: clamp(45px, 11vw, 60px);
        height: clamp(45px, 11vw, 60px);
    }
    .form-card {
        padding: 25px 15px;
        min-height: 280px;
        border-radius: 18px;
    }
    .card-title {
        font-size: clamp(16px, 4vw, 20px);
    }
    .card-text {
        font-size: clamp(14px, 3.5vw, 18px);
    }
    .card-footer {
        gap: 8px;
    }
    .card-footer a {
        font-size: clamp(14px, 3.5vw, 16px);
    }
}